Re: hash reference question

2010-01-21 Thread Uri Guttman
> "JG" == Jim Green writes: JG> i have a question for the following perl code, by changing the value JG> in %h3, the script also changes the value for %h4, I vaguely JG> understand it is because %h3's key is reference to %h2, %h2's key is JG> reference to %h1, JG> so by changing v

Re: hash reference question

2010-01-21 Thread Shawn H Corey
Jim Green wrote: > i have a question for the following perl code, by changing the value > in %h3, the script also changes the value for %h4, I vaguely > understand it is because %h3's key is reference to %h2, %h2's key is > reference to %h1, > > so by changing value in %h3, the script also change

hash reference question

2010-01-21 Thread Jim Green
i have a question for the following perl code, by changing the value in %h3, the script also changes the value for %h4, I vaguely understand it is because %h3's key is reference to %h2, %h2's key is reference to %h1, so by changing value in %h3, the script also changes the value for %h4, I was wo