Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: default valuesby mpd (Monk) |
on Sep 16, 2003 at 02:03 UTC ( [id://291705]=note: print w/replies, xml ) | Need Help?? |
Would $val = $val || $default_val; work for you?
Edit: Bah. Beaten to the punch :p and L~R's answer is more succinct anyway.
In Section
Seekers of Perl Wisdom
|
|