Just a question to clarify: How are you adding just one argument? I mean, your code seems to be implying that you'll be doing something like add( 5 ); - that is if $ARGV[1] contains 5. That just doesn't seem to make sense, most of the time adding takes two parameters, like add( 5, 2 ), I can reasonably guess what that will do, but not add( 5 ).
-Bryan
In reply to Re: subroutines problem
by mrborisguy
in thread subroutines problem
by newly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |