[ create a new paste ] login | about

Link: http://codepad.org/MxBAy7wy    [ raw code | output | fork ]

Perl, pasted on Jun 2:
1
2
3
4
5
6
7
8
9
10
11
12
13
sub tester
{
$return;
($_[0] < 10) ? ($return = "youre a youngin") : ($return = "youre an old fart");
return $return;
}


print "how old are you?";
$a = 5;
chomp $a;

print  tester($a);  #both result in "youre an old fart"


Output:
1
how old are you?youre a youngin


Create a new paste based on this one


Comments: