|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Treating sub output as a hashby moritz (Cardinal) |
| on Jan 26, 2012 at 17:05 UTC ( #950167=note: print w/ replies, xml ) | Need Help?? |
|
You can return a reference to a hash (return \%a), and then use it as print keys %{ a() };
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||