Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 romping around the Monastery: (7)
As of 2025-06-12 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.