Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: returning a hash from a module

by Lotus1 (Deacon)
on Mar 07, 2013 at 19:24 UTC ( #1022296=note: print w/ replies, xml ) Need Help??

in reply to Re: returning a hash from a module
in thread returning a hash from a module

Actually, return will return a list, scalar or void depending on the context of the expression after the return statement. So if you return a hash it will flatten it to a list. If there is an assignment of the return value into a hash then the list is put into the hash. Same with arrays.

Comment on Re^2: returning a hash from a module
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2015-11-28 02:54 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls