"be consistent" | |
PerlMonks |
Re^2: &&= vivify keys?by sundialsvc4 (Abbot) |
on Apr 18, 2012 at 11:23 UTC ( [id://965698]=note: print w/replies, xml ) | Need Help?? |
It has been my experience that “tied hashes” don’t necessarily work as ordinary true hashes do. I don’t profess to know the perlguts of it, and it seems to be somewhat implementation-dependent. My approach in any case would simply be to test whether the key exists or not, with an if-statement. That should work in every case and at the same time be perfectly clear.
In Section
Seekers of Perl Wisdom
|
|