in reply to Re: parse $ENV{'QUERY_STRING'}
in thread parse $ENV{'QUERY_STRING'}

to continue:

'a.cgi' would parse the query_string and update a database with the parsed values. Is it possible to process this locally (eg run a.cgi locally instead of on a remote web server)?

Replies are listed 'Best First'.
Re^3: parse $ENV{'QUERY_STRING'}
by marto (Cardinal) on Jun 30, 2017 at 13:36 UTC

    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.

      I'm sorry that I am not getting my problem stated in a understandable way.
      I have data filled out from a html page...the data is available in the 'get' query string. If I could get access to that string locally I would not have to have a web server parse the string and update a database. I'm trying to eliminate the web server.