paperlined.org
dev > perl > modules > related_modules
document updated 15 years ago, on Apr 15, 2007

Command-line debugging

CGI.pm-based programs can be debugged via the commandline, like this:
env REQUEST_METHOD=GET QUERY_STRING="download=1&wooohoo=2" ./script
The REQUEST_METHOD is important— without it, CGI::init() will refuse to parse the QUERY_STRING arguments.