title: how to call single perl script to run parallely through loop for different input parameters
body: <p>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 </p>
  
  <pre><code>sample2.pl -itest.txt -ffile1.txt
  </code></pre>
  
  <p>I have different input parameters for <code>-f</code> like <code>file1,file2,file3...file10</code>.</p>
  
  <p>Now i want to run the second perl script parallel for all the input parameters(file1,file2,file3)
  currently i m running as -</p>
  
  <pre><code>#!/usr/bin/perl
  use warnings;
  
  use strict;
  
  my $fi="output3.txt";--(output3.txt will contain the files file1,file2..file10)
      open (OF, $fi);
  
  foreach(&lt;OF&gt;)
  {
  system ("perl ucm3.pl -iinput.txt -f$_ ");
  
  print $_;
  }
  </code></pre>
  
  <p>But it is not runnng parallely it is running one after the other. PLease help to run these script parallely.
  Thanks in advance. </p>