Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Unexpected CGI param behavior

by pc88mxer (Vicar)
on Jun 24, 2008 at 00:47 UTC ( #693640=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @vals = $q->param('...');
    print Dumper(\@vals); # would print [ undef ] not [ ]
    
  2. or download this
    my $var = { first  => scalar $q->param('first'),
                second => scalar $q->param('second'),
              };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2015-07-08 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls