On Dec 4, 2003, at 7:24 AM, Ciko Parera wrote: [..]
I am trying to call a perl script from php (with shell_exec) and
pass a variable to the perl file I need to get the value of a variable 
from a PHP script, and put it into my perl script
Does anyone know how I do this?
[..]

Since you are going to invoke
the perl code with a shell exec,
why not pass it as a command line option:

"myPerlCode $variable"

and have your perlcode pick it up from
@ARGV the old fashion way???

You might want to look at formalizing
that approach with say Getopt::Long
on the perl side so that you can simplify
your interface ...

ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to