Think about Loose Coupling | |
PerlMonks |
Re^3: Curious about Hashes which viewed as a list has only one itemby Errto (Vicar) |
on Feb 29, 2008 at 17:37 UTC ( [id://671244]=note: print w/replies, xml ) | Need Help?? |
Well, for one thing if you were actually writing that literally you'd have to put the HASH(xxx) bit in quotes. But you're correct, that statement would not print anything. But if you changed defined to exists, then it would print yep because that key is really present in the hash.
In Section
Seekers of Perl Wisdom
|
|