There's more than one way to do things | |
PerlMonks |
Re: Cloning (weak) referencesby simonm (Vicar) |
on Mar 03, 2005 at 22:15 UTC ( [id://436384]=note: print w/replies, xml ) | Need Help?? |
You could easily extend Clone::PP to do this, by adding a line to the elsif ($ref_type eq 'REF' ... section, something like weaken( $copy = $source ) if isweak( $source );.
In Section
Seekers of Perl Wisdom
|
|