Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 scrutinizing the Monastery: (2)
As of 2024-09-08 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.