![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Or, Or, Equals Zero, $x ||= 0by eric256 (Parson) |
on Nov 27, 2007 at 23:08 UTC ( #653410=note: print w/replies, xml ) | Need Help?? |
$x = undef; $x ||= 0; print $x; That is the same as $x = $x || 0 (which is read $x or 0) and is used for defaulting values. ___________ Eric Hodges
In Section
Seekers of Perl Wisdom
|
|