Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Depth First Search through Digraph Results in Memory Leakby Hofmator (Curate) |
on Jan 08, 2004 at 15:07 UTC ( [id://319816]=note: print w/replies, xml ) | Need Help?? |
Yes, like ysth says, this looks like a bug in perl. A workaround here is to change the sub transitive_closure_DFS like this:
So it seems that somehow the anonymous array in $nodes is not properly destroyed automatically. But how this is related to the recursiveness dependency ysth mentions escapes me ... Update -- Hofmator
In Section
Seekers of Perl Wisdom
|
|