in reply to Hash Copy Decipher???
This code does copy the values of $tsh, but it's a shallow copy. Copies of the values that are references will still point to the same place that the references in $tsh point.
You're also correct that the three pair declarations after %$tsh will overwrite any values of $tsh with those keys.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash Copy Decipher???
by Errto (Vicar) on Apr 25, 2007 at 20:53 UTC | |
by chromatic (Archbishop) on Apr 25, 2007 at 21:14 UTC |