Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: CGI.pm not good practice, so what is good, modern, practice for reading CGI paramters?

by leszekdubiel (Scribe)
on Jun 02, 2021 at 09:12 UTC ( [id://11133407]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    # user input, decoded from UTF
    my $userinput = getAllInputAsHash({decodeUtf => 1});
    
  2. or download this
    #!/usr/bin/perl 
    
    ...
        map { $_ => decodedForSomeTypes(scalar $cgi->param($_)) } $cgi->pa
    +ram()
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-24 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found