Connecting Tech Pros Worldwide Help | Site Map

how to pass a php variable to a perl program

Newbie
 
Join Date: Apr 2008
Posts: 2
#1: Apr 3 '08
Ok i've done lots of searching on google and i can't seem to find my answer.

i have an html/php page that submits a string and stores it into a variable array via my php script.

I want to pass this array into my perl program via @ARGV, but i can't.

In perl i have also tried to set an empty array and set up a get option function but it won't pass through.

some sample examples would also be helpful as well.
Help please.
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Apr 3 '08

re: how to pass a php variable to a perl program


How do you invoke that Perl routine from PHP? Show some code (within code tags)

Ronald
Newbie
 
Join Date: Apr 2008
Posts: 2
#3: Apr 4 '08

re: how to pass a php variable to a perl program


Quote:

Originally Posted by ronverdonk

How do you invoke that Perl routine from PHP? Show some code (within code tags)

Ronald

from my php i used a "shell_exec(perlProgram.pl)"
Reply