Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: Get those parameters without CGI.pm

by davorg (Chancellor)
on Jun 21, 2000 at 13:39 UTC ( [id://19192]=note: print w/replies, xml ) Need Help??


in reply to Get those parameters without CGI.pm

Have you considered what your code will do when faced with a query string like:

key1=val1&key2=val2a&key2=val2b

which is a perfectly valid query string. Your %params hash will end up looking like:

%param = (key1 => 'val1', key2 => 'val2b');

The first value of key2 will have been lost. CGI.pm's parameter routines handle this correctly. If you have a key which has mulitple values, then the param function will return a list of values.


--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000
<http://www.yapc.org/Europe/>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found