There's more than one way to do things | |
PerlMonks |
Re: Initializing a hash tableby thelenm (Vicar) |
on Jan 19, 2004 at 21:53 UTC ( [id://322447]=note: print w/replies, xml ) | Need Help?? |
Could you post a snippet of code that shows what you're currently doing? I would think that at the time when you print out the results, you could just print "0" if you detect that no entries exist. Depending on how you're building the hash, "detecting no entries" could mean using exists, or defined, or scalar keys %{$hash{'key'}}, or something else. -- Mike --
In Section
Seekers of Perl Wisdom
|
|