Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Code cleanup; how best to deal with: defined(%hash) is deprecated at...by NetWallah (Canon) |
on May 22, 2014 at 05:29 UTC ( [id://1087058]=note: print w/replies, xml ) | Need Help?? |
Here is an more declarative alternative to do the tests and assignment you show above:
It will give the right results (with warnings) if any of the expected values is not defined, or incorrect.
What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
In Section
Seekers of Perl Wisdom
|
|