Thanks for your explanation.
The last script however grows very fast and constantly, after 1 minute it has about 30MB resident memory consumption.
I tried with perl 5.8.8 and perl 5.9.5.
I also checked /proc/$PID/status
The number of threads is not growing above $MAX.
Is there a possiblity that this is somehow related to my dual core processor ?