Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Treating sub output as a hash

by moritz (Cardinal)
on Jan 26, 2012 at 17:05 UTC ( #950167=note: print w/replies, xml ) Need Help??


in reply to Treating sub output as a hash

You can return a reference to a hash (return \%a), and then use it as print keys %{ a() };

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950167]
help
Chatterbox?
[marto]: hey Corion, how's things?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-06-29 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (655 votes). Check out past polls.