In perlop - Assignment Operators, the example shown for += applies to all the op= operators. So,
$x ||= 2;
is equivalent to
$x = $x || 2;
-- Ken
In reply to Re: ||= (poorly documented?)
by kcott
in thread ||= (poorly documented?)
by live4tech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |