in reply to Re^2: Without trying; what do you think this would print? (/left/ side)
in thread Without trying; what do you think this would print?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Without trying; what do you think this would print? (notabug!)
by tye (Sage) on Apr 30, 2011 at 15:49 UTC | |
by wind (Priest) on Apr 30, 2011 at 18:06 UTC | |
by tye (Sage) on Apr 30, 2011 at 19:30 UTC | |
by wind (Priest) on Apr 30, 2011 at 20:39 UTC | |
by tye (Sage) on Apr 30, 2011 at 22:18 UTC | |
|