Perl Monk, Perl Meditation | |
PerlMonks |
Re: subroutines problemby mrborisguy (Hermit) |
on Jul 20, 2005 at 01:01 UTC ( [id://476318]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|