F
Francis Sylvester
Hi,
I'm trying to parse a URL string with the help of the CGI module. I'm sure
this is really simple but I just can't seem to retrieve the first variable
after the question mark in the URL - my code returns nothing for this
variable - variables after this are printed as expected. I've tried looking
at the perldoc but I still can't figure out why this isn't working... Any
help appreciated!
Thanks,
Francis.
# Example Code
use warnings;
use strict;
use CGI;
my $URL =
"http://.someurl.com/somepath?test1=testresult1&test2=testresult2&test3=testresult3";
my $test = new CGI($URL);
print $test -> param('test1');
print $test -> param('test2');
print $test -> param('test3');
I'm trying to parse a URL string with the help of the CGI module. I'm sure
this is really simple but I just can't seem to retrieve the first variable
after the question mark in the URL - my code returns nothing for this
variable - variables after this are printed as expected. I've tried looking
at the perldoc but I still can't figure out why this isn't working... Any
help appreciated!
Thanks,
Francis.
# Example Code
use warnings;
use strict;
use CGI;
my $URL =
"http://.someurl.com/somepath?test1=testresult1&test2=testresult2&test3=testresult3";
my $test = new CGI($URL);
print $test -> param('test1');
print $test -> param('test2');
print $test -> param('test3');