Perl: the Markov chain saw | |
PerlMonks |
Re: param = 0, not NULLby Ojosh!ro (Beadle) |
on Mar 29, 2007 at 15:41 UTC ( [id://607295]=note: print w/replies, xml ) | Need Help?? |
undef, 0 and '' will all cause the default value to be set. The simplest way to check whether your param( 'choice' ) has any or no value is the use of defined
Hope it helps.
if( exists $aeons{strange} ){ die $death unless ( $death%2 ) }
In Section
Seekers of Perl Wisdom
|
|