I am new in perl. currently i am running a perl scripts which will call another perl script. the second perl script is having 2 input parameters
sample2.pl -itest.txt -ffile1.txt
I have different input parameters for -f like file1,file2,file3...file10.
Now i want to run the second perl script parallel for all the input parameters(file1,file2,file3) currently i m running as -
#!/usr/bin/perl
use warnings;
use strict;
my $fi="output3.txt";--(output3.txt will contain the files file1,file2..file10)
open (OF, $fi);
foreach(<OF>)
{
system ("perl ucm3.pl -iinput.txt -f$_ ");
print $_;
}
But it is not runnng parallely it is running one after the other. PLease help to run these script parallely. Thanks in advance.