in reply to No Performance gain with Parallel::ForkManager

Nice recommendation by McA! Try my $cores = qx(sysctl -n hw.ncpu); (works on my Mac) before you consult the manual for every machine where your script should run ;-) Please see also sysctl for more details.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»