Problems? Is your data what you think it is? | |
PerlMonks |
Re: Addition of hashesby NetWallah (Canon) |
on Feb 03, 2017 at 07:25 UTC ( [id://1180929]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|