Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: multiple passes by reference

by dvergin (Monsignor)
on Feb 17, 2002 at 04:35 UTC ( [id://145954]=note: print w/replies, xml ) Need Help??


in reply to multiple passes by reference

You are right to suspect there is a simple way of saying this.

$hash gives you the same thing as \%$hash.

In convoluted English: the hashref will give you effectively the same thing as a reference to the hash pointed to by the hashref.

Update: Attend to dws, I tried to stick with your var name, but there is a world of grief to be avoided by naming your vars so you really know what you have. $hashref is much more helpful than $hash when you come back to the code a month later.
 

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found