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

Re: return multiple hashes from a sub

by pelagic (Curate)
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


Comment on Re: return multiple hashes from a sub
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://427650]
help
Chatterbox?
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-28 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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









    Results (251 votes), past polls