Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

CGI Parameters

by worik (Sexton)
on Dec 14, 2016 at 22:13 UTC ( [id://1177808]=perlquestion: print w/replies, xml ) Need Help??

worik has asked for the wisdom of the Perl Monks concerning the following question:

I wish to read the CGI parameters in FCGI script.
In the old days I used CGI.pm, but it was a bit heavy weight, but it became a bad habit.
I am looking for a simple package to extract the parameters from $ENV{QUERY_STRING} and the STDIN but cannot find anything appropriate.
There is Plack but it is way way too much. Is there anything small and light weight out there?

Replies are listed 'Best First'.
Re: CGI Parameters
by hippo (Bishop) on Dec 15, 2016 at 00:45 UTC
Re: CGI Parameters
by Your Mother (Archbishop) on Dec 15, 2016 at 02:26 UTC

    CGI is fine. If you know it and you have an FCGI env, there is no reason to avoid it really; though the lightweight suggestions by hippo are probably good. Plack is *far* more lightweight but it's also not appropriate. It's a framework kit and spec, not directly an application development tool.

Re: CGI Parameters (CGI.pm, CGI::Fast )
by Anonymous Monk on Dec 15, 2016 at 02:24 UTC

    In the old days I used CGI.pm, but it was a bit heavy weight, but it became a bad habit.

    Well it ain't the old days no more :) use CGI.pm, specifically use it through CGI::Fast , nothing else, not even CGI::Simple approaches CGI.pm in terms of CGI -- if Ye olde CGI your goal use the best, use CGI.pm

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found