in reply to Re: Re: CGI params
in thread CGI params
Strange. I was able to duplicate your problem (by adding use CGI qw(:standard); to the top of that fragment). The change I offer fixes the problem, at least does when I try it. What, exactly, does your code fragment look like when you try it?
Mine looks like this:
C:\test>type test.pl use CGI qw(:standard); # my %params = map ($_ => param('$_'),param()); my %params = map {$_ => param($_)} param(); print '-->' . $params{'listname'}. '<--' . "\n"; C:\test>perl test.pl listname=foo bar -->foo<--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: CGI params
by Roger (Parson) on Sep 09, 2003 at 08:23 UTC | |
|
Re: Re: Re: Re: CGI params
by devslashneil (Friar) on Sep 09, 2003 at 08:05 UTC | |
by dws (Chancellor) on Sep 09, 2003 at 08:11 UTC | |
by devslashneil (Friar) on Sep 09, 2003 at 08:12 UTC |