sub main{ my $answer = &add(1,2); print $answer; } sub add{ my $value1 = shift; my $value2 = shift; my $result = ($value1 + $value2); return $result; }
In reply to Re: Returning Values from Subroutines
by TStanley
in thread Returning Values from Subroutines
by johnirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |