perlfaq nodetype
faq_monk
<P>
The Data::Dumper module on
<FONT SIZE=-1>CPAN</FONT> is nice for printing out data structures, and
FreezeThaw for copying them. For example:
<P>
<PRE> use FreezeThaw qw(freeze thaw);
$new = thaw freeze $old;
</PRE>
<P>
Where <CODE>$old</CODE> can be (a reference to) any kind of data structure
you'd like. It will be deeply copied.
<P>