title: Passing variables from PHP to PERL
body: <p>i have written this program to pass a variable in the embedded perl script but it gives blank output :-( why it is not working. Please fix this problem.</p>
  
  <p>the php script</p>
  
  <pre><code>&lt;?php
  $var1='high'; 
  exec('C:/xampp/htdocs/WORK/hello.pl'.' '.EscapeShellArg("$var1"),$output);
  echo ($output);
  ?&gt;
  </code></pre>
  
  <p>the perl script</p>
  
  <pre><code>#!/usr/bin/perl -w
  
      $var1=&lt;&gt;; 
  
      print $var1;
  </code></pre>