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.
In reply to Re: Hash Copy Decipher???
by chromatic
in thread Hash Copy Decipher???
by kunalg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |