On Friday, June 14, 2002, at 07:38 , Batchelor, Scott wrote:
> In Perl:
>
> $var = @ARGV;
>
> print "$var";
>
> By just printing the $var to STDOUT in perl should give me the $returnvar.
print the @ARGV would have shown you all that was passed.
Think about the symantical problem here - you ju
actly works.
Thanks
Scott
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:18 PM
To: Batchelor, Scott
Cc: begin begin
Subject: Re: Calling Perl script from php.
On Monday, June 10, 2002, at 12:58 , Batchelor, Scott wrote:
On Monday, June 10, 2002, at 12:58 , Batchelor, Scott wrote:
> I am using an exec command like this:
>
> Exec "perl.pl $variable"
>
> Scott
if you ran that at the command line,
#demo in /bin/sh constructs
variable="arg1 arg2 arg3"
perl.pl $variable
then your perl cod
ilto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 3:59 PM
> To: 'Nikola Janceski'; '[EMAIL PROTECTED]'
> Subject: RE: Calling Perl script from php.
>
>
> I am using an exec command like this:
>
> Exec "perl.pl $variable"
>
> Scott
>
I am using an exec command like this:
Exec "perl.pl $variable"
Scott
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 2:57 PM
To: 'Batchelor, Scott'; '[EMAIL PROTECTED]'
Subject: RE: Calling
ECTED]'
> Subject: Calling Perl script from php.
>
>
> Hey all.
>
> Quick question I am calling a perl script from a php page I
> think I have
> that part working. I am passing perl a variable when calling
> it. How do I
> read that variable into my perl script?
Hey all.
Quick question I am calling a perl script from a php page I think I have
that part working. I am passing perl a variable when calling it. How do I
read that variable into my perl script?
Do I use $ARGV?
Could someone give me a quick example.
Thanks in advance.
Scott
--
To unsubs