On Sun, Mar 29, 2015 at 11:26 PM, Uday Shankar Kintali wrote:Since you are calling the script using "system", there are a few general ways of getting the caller (PHP in this case) parameters to the callee (Perl):> Looking if I can pass on the user selected values ( in php form) to the perl script.
and then in Perl you can read it like:$handle = popen('PerlCode.pl','w'); fwrite($handle,"here is some input\n"); fwrite($handle,"more input\n"); # etc.... pclose($handle);
while (<STDIN>) { # Do something with the line we just read }
In reply to Passing values to a Perl script from PHP by Yary
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |