- or download this
opendir(hand,$ARGV[0]); #replace ARGV[0] with your DIR
@files = readdir(hand);
...
push(@logfiles,$_);
}
}
- or download this
while (scalar @Threads < scalar @logfiles) {
@running = threads->list(threads::running);
...
}
}
- or download this
$nooffiles = @logfiles;
$fileindex=0;
...
open hanr ,">", "$logfiles[$fileindex]" or die "could not open logfile
+ .. $!";
$fileindex++;
}