Hi all,
could me anyone explain, why is this so slow?
use strict;
use warnings;
use Parallel::ForkManager;
my @links=(1..100000);
my $pm=new Parallel::ForkManager(5);
foreach my $x (0..$#links) {
$pm->start and next;
print "$links[$x]\n";
$pm->finish;
}
print "Too slow.\n";
when I write my @links=(1..100); it is really faster. My question is
why ?
--
Brano
-=x=-
Skontrolovan� antiv�rov�m programom NOD32
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>