There's more than one way to do things | |
PerlMonks |
Re: passing parameters from the command lineby l3v3l (Monk) |
on Dec 08, 2005 at 00:33 UTC ( [id://515087]=note: print w/replies, xml ) | Need Help?? |
can you just use:
$opt = $ARGV[0] || "default value for option";
instead of shift or is there something else going on in your script that requires you to use shift?
In Section
Seekers of Perl Wisdom
|
|