AlignDB::Run - Run in parallel without pains.
use AlignDB::Run; my $worker = sub { my $job = shift; print "$job\n"; return; }; my $run = AlignDB::Run->new( parallel => 4, jobs => [1 .. 8], code => $worker, opt => {foo => "bar",} ); $run->run;
parallel - run in parallel mode
parallel
jobs - All jobs to be done
jobs
code - code ref
code
opt - hash ref
opt
Start run your code
Qiang Wang <wang-q@outlook.com>
This software is copyright (c) 2009- by Qiang Wang.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AlignDB::Run, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AlignDB::Run
CPAN shell
perl -MCPAN -e shell install AlignDB::Run
For more information on module installation, please visit the detailed CPAN module installation guide.