Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: re-useing a hash

by brian_d_foy (Abbot)
on Apr 21, 2005 at 03:05 UTC ( #449847=note: print w/replies, xml ) Need Help??


in reply to Re^3: re-useing a hash
in thread re-useing a hash

Can't take a reference to a lexical variable? Surely you jest. What happened when you tried it?

He wants a lexical variable because he wants a new hash at the start of each iteration of the loop. Pass that hash as a reference to the gather function (or better yet, just get the hash by having gather() return a reference).

Global variables are bad news, and that's why this thread exists. :)

--
brian d foy <brian@stonehenge.com>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2023-09-24 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?