Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: return multiple hashes from a sub

by pelagic (Priest)
on Feb 03, 2005 at 14:31 UTC ( #427650=note: print w/replies, xml ) Need Help??


in reply to return multiple hashes from a sub

Your initialising was wrong; use:
my %hash1 = ( 1=>"foo1", 2=>"bar1" ); ## instead if my %hash1 = { 1=>"foo1", 2=>"bar1" };
... no curlies!

pelagic

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://427650]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-12-11 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.