Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: using $ARGV without argumentsby Bilbo (Pilgrim) |
on Jun 24, 2003 at 14:07 UTC ( [id://268512]=note: print w/replies, xml ) | Need Help?? |
Well, if you don't put any arguments in then $ARGV[0] is undefined. What do you want to do if no arguments are given? Do you want it to cause an error:
Or do you want to set a default value?
Or do you just want it to ignore the argument?
In Section
Seekers of Perl Wisdom
|
|