Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Addition of hashes

by NetWallah (Canon)
on Feb 03, 2017 at 07:25 UTC ( [id://1180929]=note: print w/replies, xml ) Need Help??


in reply to Addition of hashes

You are adding memory addresses.

If you change what $b points to, the add it to $a, the $sum will change.

You state : I make a change to hashref $b

Did you change the internal content of the hashref, or did you assign a new hashref to $b ? (Thereby changing the memory address)

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-18 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found