in reply to Check for existance in a hash of hashes
DB<1> $a{foo}->{bar} = "zoikes" DB<2> print "yup\n" if exists $a{foo} yup DB<3> print "yup\n" if exists $a{foo}->{bar} yup DB<4> print "yup\n" if exists $a{foo}->{baz} DB<5> print "yup\n" if exists $a{foo} && exists $a{foo}->{bar} yup DB<6> print "yup\n" if exists $a{foo} && exists $a{foo}->{baz} DB<7>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2: Check for existence in a hash of hashes
by dragonchild (Archbishop) on Mar 27, 2002 at 18:46 UTC | |
by Fletch (Bishop) on Mar 27, 2002 at 18:51 UTC | |
by dragonchild (Archbishop) on Mar 27, 2002 at 18:57 UTC |