in reply to Unexpected CGI param behavior
For the reasons given by others, the implementation is correct. If you want, you could use:
(and then, if you want selected parameters, use $vars->{'first'}, etc.) which has a different icky way of dealing with multi-valued parameters.my $vars = CGI->Vars;
The correct param() invocation would be:
{ first => scalar $q->param('first'), second => scalar $q->param('second'), }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Unexpected CGI param behavior
by Anonymous Monk on Jun 24, 2008 at 09:28 UTC |
In Section
Seekers of Perl Wisdom