You can use defined to test for undef and length to test for empty strings, and then either use an if to exclude those values like you're already using, or as an alternative use next to skip the current iteration of the loop.
By the way, keys only returns the keys that already exist in the hash, so your exists check isn't necesary in this case.
In reply to Re: Printing from a hash table
by haukex
in thread Printing from a hash table
by catfish1116
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |