Hello,
When I do this in a Linux command line :
perl -e 'system("php myscript.php a b")'
it works, i.e. I have a string as the return value.
But If I do this inside my perl script :
$var = system("php myscript.php a b");
it doesn't works, i.e. I have 0 as the return value ($var).
The code of script.php is :
#!/usr/bin/php -q
<?php
echo $argv[1].$argv[2];
?>
Can you see the problem ? Thanks a lot for any help 🙂