Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by marto (Cardinal)
on May 24, 2021 at 08:40 UTC ( [id://11132947]=note: print w/replies, xml ) Need Help??


in reply to CGI.pm not good practice, so what is good, modern, practice for reading CGI paramters?

Have you read CGI::Alternatives? Mojolicious is fun to work with, https://docs.mojolicious.org/Mojolicious/Guides/Tutorial#GET-POST-parameters.

  • Comment on Re: CGI.pm not good practice, so what is good, modern, practice for reading CGI paramters?

Replies are listed 'Best First'.
Re^2: CGI.pm not good practice, so what is good, modern, practice for reading CGI paramters?
by leszekdubiel (Scribe) on May 24, 2021 at 09:01 UTC

    Thank you. I've read CGI::Alternatives, but for example in Mojolicious it is not that simple, because you have to define routing, paths, and start "application".

    I wan't library to look at environment (is it GET or POST? if POST, then what is form encoding?), then parse CGI parameters and make them available as hash, or as functions to list all names and get all values. Maybe in that simple case CGI.pl i still a way to go, and is going to be supported many years from now on...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2024-04-16 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found