Re: Perl and PHP
| From: | Chris Boget | Date: | Wed, 06 Mar 2002 21:11:10 +0000 |
| Subject: | Re: Perl and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87526@lists.php.net to get a copy of this message | ||
> I need to pass a variable to Perl from a PHP script. I am somewhat know
> PHP but I do NOT know perl....I am running my perl script off of the
> command line. I tried /path/to/somewhere/script.pl?var=var
> but it did not work.
> I would love any help you could provide me
it would be
/path/to/somewhere/script.pl var
where var is passed as an argument. In perl, there are ways you can
get the arguments passed. I believe they are $1 $2 $3 etc.
Chris