Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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() };


Comment on Re: Treating sub output as a hash
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-12-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (164 votes), past polls