good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: hash reference to itselfby dave_the_m (Monsignor) |
on Aug 02, 2016 at 17:41 UTC ( [id://1169022]=note: print w/replies, xml ) | Need Help?? |
Note that a self-referential hash will leak. This code consumes several Gb after running for a few seconds:
You may need to use weaken() from Scalar::Util Dave.
In Section
Seekers of Perl Wisdom
|
|