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.
views:
186answers:
3
+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
2009-08-26 16:45:05
Indeed ... +1...
Axeman
2009-08-26 17:42:12
+5
A:
If CGI is too heavyweight, try a different module, such as CGI::Minimal.
glenn jackman
2009-08-26 18:24:16
A:
You can also get the value of a GET request from the $ENV{'QUERY_STRING'}
variable.
case
2009-08-26 20:57:29