in reply to Re^2: New behavior of 'each' with respect to references
in thread New behavior of 'each' with respect to references
So the key "1" is present, but $a[1] doesn't exist...% perl -le '@a=0..4; delete $a[1]; print exists($a[1])||0' 0
If just the auto-dereference of hashes had been added (and it had worked with tied scalars overloading %{}, and it didn't give some BS can't-turn-it-off error about "breaking encapsulation" like "smart" match does for blessed hashrefs (I don't have 5.14 ATM, so I'm not sure on this part)), it would probably be fine, but auto-dereference combined with broken acceptance of arrays just seems like a disaster.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: New behavior of 'each' with respect to references
by ikegami (Patriarch) on May 17, 2011 at 19:38 UTC | |
by educated_foo (Vicar) on May 17, 2011 at 19:53 UTC | |
by ikegami (Patriarch) on May 17, 2011 at 20:13 UTC | |
by educated_foo (Vicar) on May 17, 2011 at 20:34 UTC | |
by ikegami (Patriarch) on May 17, 2011 at 20:47 UTC | |
|