in reply to Re: Check for existance in a hash of hashes
in thread Check for existance in a hash of hashes
$a{foo}{bar} = 'blah'; print "Yep\n" if exists $a{foo} && $a{foo}{bar}; print "Nope\n" if exists $a{bar}{baz}; print "Whoops!\n" if exists $a{bar};
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re2: Check for existence in a hash of hashes
by Fletch (Bishop) on Mar 27, 2002 at 18:51 UTC | |
by dragonchild (Archbishop) on Mar 27, 2002 at 18:57 UTC |