If you are using CGI consider using the param method:
my $q = CGI->new; my $name = $q->param('name'); warn $name;
You can run this from the command line by passing parameters ./cgi.pl name=Derp.
However if you want to run this without a web server do you really need to use CGI at all? Perhaps if you write a short explanation of what you're trying to achieve people can provide better advice. If you do need to write something for the web, consider using Mojoliciouis::Lite rather than CGI.
In reply to Re^3: parse $ENV{'QUERY_STRING'}
by marto
in thread parse $ENV{'QUERY_STRING'}
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |