$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.
In reply to Re: Or, Or, Equals Zero, $x ||= 0
by eric256
in thread Or, Or, Equals Zero, $x ||= 0
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |