in reply to Re: exists on hash autovivifies right?
in thread exists on hash autovivifies right?

That will turn an attempt to autovivify into an exception.
$ perl -MHash::Util=lock_keys -wle 'my %x; lock_keys %x; exists $x{a}{ +b}' Attempt to access disallowed key 'a' in a restricted hash at -e line 1 +.

Very useful for debugging.

Replies are listed 'Best First'.
Re^3: exists on hash autovivifies right?
by Anonymous Monk on Jun 30, 2008 at 04:49 UTC
    that also turns lots of other things into an exception, good luck.