tags:

views:

186

answers:

3

How can I access GET/POST arguments in a Perl script without using CGI.pm's param() method? I'd rather not parse $ENV{'QUERY_STRING'}, if possible.

+7  A: 

The standard way is to use CGI.pm. Otherwise - you can use fully-fledged web framework like Catalyst.

Parsing HTTP headers is relatively simple, but what is the point of reinventing this particular wheel?

depesz
Indeed ... +1...
Axeman
+5  A: 

If CGI is too heavyweight, try a different module, such as CGI::Minimal.

glenn jackman
A: 

You can also get the value of a GET request from the $ENV{'QUERY_STRING'} variable.

case