"be consistent" | |
PerlMonks |
Re: Apply function "keys" directly to function returning hashby benn (Vicar) |
on Aug 25, 2003 at 16:48 UTC ( [id://286405]=note: print w/replies, xml ) | Need Help?? |
The problem is that you're *not* returning a hash - you're returning a list, which my %hash = func() turns into a hash for you.
One way round this would be to return a hashref instead - something like this... Hope this helps, Ben.
In Section
Seekers of Perl Wisdom
|
|