sub main{ my $answer = &add(1,2); print $answer; } sub add{ my $value1 = $_[0]; my $value2 = $_[1]; my $result = ($value1 + $value2); return $answer; }
Thanks
j o h n i r l .
Sum day soon I'Il lern how 2 spelI (nad tYpe)
In reply to Returning Values from Subroutines by johnirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |