[ale] More on name=value
Bert Hiddink
hiddink at sipromicro.com
Sun Jul 18 10:09:00 EDT 1999
Hello, Erik,
On 17 Jul 99, at 9:13, Eric Z. Ayers wrote:
> SORRY! I was thinking of it as a general shell script problem, not as
> running it from a web page... If this were perl, it would be a snap...
>
>
> $ARGV[0]=~/=(.*)$/;
> $value=$1;
>
> and you'd have your value out in a jiffy!
>
>
> -Eric.
I tried to work out the above and wrote a test.pl:
#!/usr/local/bin/perl5
$ARGV[0]=~/=(.*)$/;
$value=$1;
print "$value\n\n";
Then ran from the shell:
test.pl name=15
Result was printed:
15
Then did it from my browser:
http://www.mysite/cgi-bin/test.pl?name=15
Nothing was printed (a blank page)?
What is going wrong here?
Thanks in advance!
Regards,
-brt
Bert Hiddink, FUNDACION GALILEO
Correo electronico: hiddink at sipromicro.com
Sitio: http://www.sipromicro.com
Tel. (506) 280 8683, telefax. (506) 280 8847
More information about the Ale
mailing list