I _think_ the memory leak you mean only comes up with recursive closures:
my $foo; $foo=sub { $foo->(@_[1..$#_]) if @_ }; $foo->();
But like you I dont remember the details...
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re: Re: Closures, object destruction and memory leaks
by demerphq
in thread Closures, object destruction and memory leaks
by mpeppler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |