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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: hash reference to itself
by ExReg (Priest) on Aug 02, 2016 at 18:15 UTC |
In Section
Seekers of Perl Wisdom