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

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.

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

      I have no need to show anything...the 'a.cgi' would parse the query string and update database tables with the parsed values. I do not need to answer back to the client.

        By itself, the web browser isn't going to execute a script for you, even if it lives on your local filesystem. The browser simply knows how to "ask" for something at a particular address.

        In order for you to do something with the data, you're going to need a program that is listening for the request. That's why people are asking you about a web server. There are several ways you can create a simple web server on your machine to serve up your form and then process the results. I've not tried it personally, but I see that CPAN has HTTP::Server::Simple, which may be a good choice. (As I said, I've never used it, I'll defer to the other monks who have experience with web coding.)

        Update: OK, I got really bored, so I installed HTTP::Simple::Server to give it a go. It was pretty simple, I just liberally cargo culted together something from the documentation, and it worked as advertised. I put the code in <readmore> tags so no-one has to look at it unless they're bored.

        ...roboticus

        When your only tool is a hammer, all problems look like your thumb.

        yeah and? if you want to talk "query string" you need a webserver, even if you chose not to say anything back