You're right tye, it's a bug. The following should be equivalent:
$ perl -e '$a{0} = $a{0} || scalar keys %a; print $a{0}' 0 $ perl -e '$a{0} ||= scalar keys %a; print $a{0}' 1
Tested on 5.8, 5.10, and 5.12
In reply to Re^3: Without trying; what do you think this would print? (/left/ side)
by wind
in thread Without trying; what do you think this would print?
by lkundrak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |