in reply to exists on hash autovivifies right?
Update: added confirmation about 5.10use Data::Dumper; my $x; if (exists $x->{a}->{c}) { print "c exists\n"; } else { print "c doesn't exists\n"; } print Dumper($x); __END__ c doesn't exist $VAR1 = { 'a' => {} };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: exists on hash autovivifies right?
by ikegami (Patriarch) on Jun 29, 2008 at 07:11 UTC | |
by Anonymous Monk on Jun 29, 2008 at 20:52 UTC | |
|
Re^2: exists on hash autovivifies right?
by pc88mxer (Vicar) on Jun 28, 2008 at 23:24 UTC | |
by lodin (Hermit) on Jun 29, 2008 at 09:55 UTC | |
by Anonymous Monk on Jun 29, 2008 at 21:05 UTC | |
by Anonymous Monk on Jun 29, 2008 at 21:03 UTC | |
|
Re^2: exists on hash autovivifies right?
by Anonymous Monk on Jun 28, 2008 at 23:11 UTC | |
by Anonymous Monk on Jun 28, 2008 at 23:12 UTC | |
by planetscape (Chancellor) on Jun 29, 2008 at 06:10 UTC | |
|