Don't ask to ask, just ask | |
PerlMonks |
Re: Copying a value from an element in the ARGV array to a variable...by mr.nick (Chaplain) |
on Sep 17, 2001 at 20:02 UTC ( [id://112886]=note: print w/replies, xml ) | Need Help?? |
Just to build on arturo's comment of using the ternary || operator: if you have (or plan to have) multiple arguments, then something along these lines might work better for you:
That way you can easily inline other arguments:
mr.nick ...
In Section
Seekers of Perl Wisdom
|
|