title: How can I make fork in Perl in different scripts?
body: <p>I have a process in Perl that creates another one with the system <strong>command</strong>, I leave it on memory and I pass some variables like this:</p>
  
  <pre>
  <code>
  my $var1 = "Hello";
  my $var1 = "World";
  system "./another_process.pl $var1 $var2 &";
  </code>
  </pre>
  
  <p>But the system command only returns the result, I need to get the PID. I want to make something like <strong>fork</strong>. What should I do? How can I make something like fork but in diferent scripts?</p>
  
  <p>Thanks in advance!</p>