in reply to Re: Autovivification and soft refs
in thread Autovivification and soft refs
Just add a bit of info on top of what Abigail-II said. If you my %stopper, it will stop the autovivification:
use Data::Dumper; my %stopper; $x = 'stopper'; exists $x->{'y'}->{'z'}; print Dumper $x; print Dumper \%stopper;
Which prints:
$VAR1 = 'stopper'; $VAR1 = {};
Comment out that my %stopper line, you will see the autovivification:
$VAR1 = 'stopper'; $VAR1 = { 'y' => {} };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Autovivification and soft refs
by Abigail-II (Bishop) on Jan 22, 2004 at 09:35 UTC | |
|
Re: Re: Re: Autovivification and soft refs
by thelenm (Vicar) on Jan 22, 2004 at 05:03 UTC |