($foo gets set to 1,2,3 if and only if $foo is false)$foo ||= [1,2,3]
But this doesn't
@bar ||= (1,2,3) Can't modify array dereference in logical or assignment (||=) at (eval + 27)[/usr/lib/perl5/5.8.8/perl5db.pl:628] line 2, at EOF
In reply to ||= oddity by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |