in reply to question on hash behavior

I haven't any real experience with it, but there's also the autovivification pragma. Because I'm not familiar with it, I would tend to use it in the narrowest possible scope:

c:\@Work\Perl\monks>perl -wMstrict -le "use Data::Dump; ;; my %hash; dd \%hash; ;; if (do { no autovivification; exists $hash{foo}{bar}{99}{x}{y} }) { print 'got it'; } ;; dd \%hash; " {} {}
This also works with statement modifiers, e.g.:
    print 'got it' if do { no autovivification;  exists $hash{foo}{bar}{99}{x}{y} };


Give a man a fish:  <%-{-{-{-<