Which OS and versionof Perl are you using? This doesn't seem to leak (with 5.10.1 & Vista):
perl -Mthreads -E"sub x{sleep rand 100}; for(1..100){ threads->new( \& +x, $_ )->detach }; sleep 1000"
In reply to Re: Perl detached threads, loops & my?
by BrowserUk
in thread Perl detached threads, loops & my?
by expresspotato
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |