SPUG: Slice of HashOfHash

David Dyck david.dyck at fluke.com
Thu Nov 16 07:24:25 PST 2006

On Thu, 16 Nov 2006 at 03:27 -0800, Jacinta Richardson <jarich at perltraining...:

> I agree that the proposed if statement doesn't cause auto-vivication, but it's
> important to be aware that it *will* cause a warning to be generated if warnings
> are turned on.  Comparing an undefined thing to a string does that.  ;)  This
> isn't a big deal but most people don't like their code generating warnings, so
> Jerry's advice (to check the field first ) is right... just for the wrong
> reason.  Of course, we can also just check it for truth and save a few characters.

Thank you for following up -- your observations are correct, and I
was focused on the auto-vivication so much that I actually ignored
the warnings - which should not be done!

More information about the spug-list mailing list