in reply to Re: Simple add and multiply subroutines
in thread Simple add and multiply subroutines

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.