in reply to Running a Perl Code within a Perl Code Using "Shell Module"
and later, once you have it working, add the Proc::Queue bits:my @list = glob("*.fasta"); foreach my $fname (@list) { my ($base) = split /\./, $fname; system "perl mycode.pl $base >~/MyPerl/result_ans/$base.out" }
You can also activate Proc::Queue trace mode to see what's going on.use Proc::Queue size=>5, qw(system_back); my @list = glob("*.fasta"); foreach my $fname (@list) { my ($base) = split /\./, $fname; system_back "perl mycode.pl $base >~/MyPerl/result_ans/$base.out" } 1 while wait != -1;
|
|---|