in reply to Re: restricting values to a nested datastructure
in thread restricting values to a nested datastructure
#!/usr/bin/perl -w use strict; use Data::Dumper; my %a; { no autovivification 'exists'; if (exists ( $a{'abd'}->[0] ) ) { print "yes \n"; } } print Dumper \%a; if (exists ( $a{'abd'}->[0] ) ) { print "yes \n"; } print Dumper \%a; __END__ $VAR1 = {}; $VAR1 = { 'abd' => [] };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: restricting values to a nested datastructure
by tobyink (Canon) on Dec 14, 2011 at 13:17 UTC |