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.
the php script
<?php
$var1='high';
exec('C:/xampp/htdocs/WORK/hello.pl'.' '.EscapeShellArg("$var1"),$output);
echo ($output);
?>
the perl script
#!/usr/bin/perl -w
$var1=<>;
print $var1;