Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: hash refferences

by leonidlm (Pilgrim)
on Aug 21, 2008 at 13:15 UTC ( [id://705785]=note: print w/replies, xml ) Need Help??


in reply to Re^3: hash refferences
in thread hash refferences

Heh thanks, this is exactly what I did, but somehow it seems not efficient enough.
What about the following solution:
Substitute the %temp variable by $tempRef= {} ?

Replies are listed 'Best First'.
Re^5: hash refferences
by moritz (Cardinal) on Aug 21, 2008 at 13:20 UTC
    Yes, you can do that. That way you avoid the copy, and whenever you need a fresh hash you can write $tempRef = {}.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found