Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Unexpected CGI param behavior

by ysth (Canon)
on Jun 24, 2008 at 03:19 UTC ( #693654=note: print w/ replies, xml ) Need Help??


in reply to Unexpected CGI param behavior

For the reasons given by others, the implementation is correct. If you want, you could use:

my $vars = CGI->Vars;
(and then, if you want selected parameters, use $vars->{'first'}, etc.) which has a different icky way of dealing with multi-valued parameters.

The correct param() invocation would be:

{ first => scalar $q->param('first'), second => scalar $q->param('second'), }


Comment on Re: Unexpected CGI param behavior
Select or Download Code
Re^2: Unexpected CGI param behavior
by Anonymous Monk on Jun 24, 2008 at 09:28 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://693654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (24)
As of 2014-09-02 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (23 votes), past polls