Just another Perl shrine | |
PerlMonks |
Re: hash defined?by Roy Johnson (Monsignor) |
on Mar 06, 2008 at 20:41 UTC ( [id://672581]=note: print w/replies, xml ) | Need Help?? |
print "Exists\n" if defined $key and exists $hash{$key};
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|