Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Treating sub output as a hash

by JavaFan (Canon)
on Jan 26, 2012 at 22:33 UTC ( #950234=note: print w/ replies, xml ) Need Help??

in reply to Treating sub output as a hash

Is there a way to avoid defining %t, and make the code more compact?
print keys %{{a}};
a() returns a list. The inner {} make a hashref, and the outer %{} dereferences this hashref.

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-08 00:21 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (93 votes), past polls