in reply to Without trying; what do you think this would print?
Yup, looks like a bug if you ask me
$ perl -e " $a{0} ||= scalar keys %a; print $a{0} " 1 $ perl -e " $a{0} += scalar keys %a; print $a{0} " 1 $ perl -e " $a{0} = $a{0}+ scalar keys %a; print $a{0} " 0 $ perl -e " $a{0} = $a{0} || scalar keys %a; print $a{0} " 0
|
|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Without trying; what do you think this would print?
by locked_user sundialsvc4 (Abbot) on Apr 30, 2011 at 12:32 UTC |