Syntactic Confectionery Delight | |
PerlMonks |
Passing variables from PHP to Perl using passthru()by cdherold (Monk) |
on Jun 15, 2005 at 22:11 UTC ( [id://467085]=perlquestion: print w/replies, xml ) | Need Help?? |
cdherold has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
I am trying to get a variable I have in PHP code to pass through to a perl script. I can execute the perl script from PHP using passthru() or system(), among others, however, I am unclear on how to get the variable from the PHP to be passed and interpreted in the executed Perl script. I tried passthru('/home/test.cgi';$var) but although test.cgi runs, it does not interpret $var. I am not even sure if the placement of $var in the code above is appropriate. I have read the function instructions at php.net, but they did not appear to specify such an option. I only picked it up from searches on google and looking at other pieces of simplistic code. Most Humbly, Chris
Back to
Seekers of Perl Wisdom
|
|