title: How can I pass arguments from one Perl script to another?
body: <p>I have a script which I run and after it's run it has some information that I need to pass to the next script to run.</p>
  <p>The Unix/DOS commands are like so:</p>
  <pre><code>perl -x -s param_send.pl
  perl -x -s param_receive.pl
  </code></pre>
  <p>param_send.pl is:</p>
  <pre><code># Send param
  
  my $send_var = &quot;This is a variable in param_send.pl...\n&quot;;
  $ARGV[0] = $send_var;
  print &quot;Argument: $ARGV[0]\n&quot;;
  </code></pre>
  <p>param_receive.pl is:</p>
  <pre><code># Receive param
  
  my $receive_var = $ARGV[0];
  print &quot;Parameter received: $receive_var&quot;;
  </code></pre>
  <p>But nothing is printed. I know I am doing it wrong but from the tutorials I can't figure out how to pass a parameter from one script to the next!</p>