[Israel.pm] exists/defined problem :-(

sawyer x xsawyerx at gmail.com
Sun Sep 11 07:32:21 PDT 2011

On Sun, Sep 11, 2011 at 5:10 PM, Gaal Yahas <gaal at forum2.org> wrote:

> In Perl, once you say $a->{$b}->{$c}, $a->{$b} will "spring into
> existence".

This is called "autovivification".
Vincent Pit has written a pragma you can install and use in order to disable

"use autovivification" turns it on (which is the default in Perl)
"no autovivification" turns it off

Reference: https://metacpan.org/module/autovivification
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20110911/f2822353/attachment.htm 

More information about the Perl mailing list