http://qs321.pair.com?node_id=1169022


in reply to hash reference to itself

Note that a self-referential hash will leak. This code consumes several Gb after running for a few seconds:
while (1) { my %h; $h{a} = \%h; }

You may need to use weaken() from Scalar::Util

Dave.