G'day catfish1116,
The advice from ++haukex is sound.
As of Perl v5.12.0, length will return a FALSE value for "an undefined value or a 'blank' value" (see "perl5120delta: Other potentially incompatible changes"). If you have that version (or later) you won't need to also use defined.
See also:
— Ken
In reply to Re: Printing from a hash table
by kcott
in thread Printing from a hash table
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |