Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Passing Hashes

by TheEnigma (Pilgrim)
on Oct 24, 2004 at 00:51 UTC ( [id://401931]=note: print w/replies, xml ) Need Help??


in reply to Re: Passing Hashes
in thread Passing Hashes

$dat contains a reference to the hash called %tmp, because that's what you returned from gather when you (correctly) said return \%tmp;. So you need to dereference it when you use it. To dereference $dat as a hash, you would say foreach(keys %$dat).

TheEnigma

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found