I think I see what you mean, but why would I put $i in the if conditional? Like you have:
if ( $i eq 'add' ) { my $rtn = add( @ARGV ); print "The sum is: $rtn"; }
I don't understand why it goes there.
In reply to Re^2: Simple add and multiply subroutines
by negzero7
in thread Simple add and multiply subroutines
by negzero7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |