For global variables, just do a glob assignment:
*copy = \%hash;
then, %copy and %hash are the same data structure. Otherwise, that is, for lexical variables, use Data::Alias.
In reply to Re^3: hash ref mind blow
by Corion
in thread hash ref mind blow
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |