... you should be checking 'defined-ness' - which , for a hash uses 'exists' ...
A hash key may exist and its value be undefined. If it is undefined, a warning will be produced by an operation like matching if warnings are enabled — as we hope they (almost) always are! See exists.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Check for hash ref emptiness
by AnomalousMonk
in thread Check for hash ref emptiness
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |