"be consistent" | |
PerlMonks |
Re: Checking the value of an undefined valueby chrism01 (Friar) |
on May 12, 2008 at 05:01 UTC ( [id://686030]=note: print w/replies, xml ) | Need Help?? |
$num = defined($num) ? $num : 1;
In Section
Seekers of Perl Wisdom
|
|