in reply to Re: how to limit maximum threads in cpan example boss.pl
in thread how to limit maximum threads in cpan example boss.pl

I think you want
if $LIFETIME_THREADS-- >0;
because -1 is true :)
C:\>perl -e die(666)if-1 666 at -e line 1. C:\>perl -e die(666)if-0 C:\>

Replies are listed 'Best First'.
Re^3: how to limit maximum threads in cpan example boss.pl
by franc1967 (Initiate) on Aug 11, 2008 at 16:05 UTC
    It's running perfectly now. I had only to add this line "$LIFETIME_THREADS-- >0;" also to the timeout section with the signal handler to be sure that the script will finish properly every time.

    Thanks for your help ...

    Franc