Please note that:
and$foo = shift || 1; # is the same as $foo = (shift || 1);
$foo = shift or 1; # is the same as ($foo = shift) or 1;
see perldoc perlop about Operator Precedence
In reply to Re: fun(?) with +=
by ccn
in thread fun(?) with +=
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |