Do you know where your variables are? | |
PerlMonks |
Addition of hashesby the_dark_lord (Novice) |
on Feb 03, 2017 at 06:32 UTC ( [id://1180925]=perlquestion: print w/replies, xml ) | Need Help?? |
the_dark_lord has asked for the wisdom of the Perl Monks concerning the following question: Hi I was writing a program and instead of adding values in 2 different hashes, I summed 2 hashes themselves. I caught my mistake but the value printed by the incorrect code made me curious. Basically, if I add 2 hashrefs, I get some value which depends only on the first hashref added. Example: If I try to run the code
I get some random value: 15401280 If I make a change to hashref $a, then this value changes. But if I make a change to hashref $b, then this value does not change. Does anybody know what this value is?
Back to
Seekers of Perl Wisdom
|
|