in reply to Re: recursive exists in perl
in thread recursive exists in perl
Is that really the case? For example, while the following doesn't autovivify $h{A}{B}{C} it does autovivify $h{A}{B}.
use Data::Dumper; my %h; if ( exists( $h{A}{B}{C} ) ) { print "Hi mom!\n"; } print Dumper \%h;
$VAR1 = { 'A' => { 'B' => {} } };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: recursive exists in perl
by Anonymous Monk on Dec 10, 2010 at 02:54 UTC | |
by gsiems (Deacon) on Dec 10, 2010 at 03:24 UTC |