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<--
In reply to Re: Re: Re: CGI params
by dws
in thread CGI params
by devslashneil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |