in reply to Re: Running a CGI script from a command line?
in thread Running a CGI script from a command line?
Okay, finally some progress to report, though I mostly feel increasingly ignorant in spite of the expert guidance. I can make it work by inserting the "QUERY_STRING" (without the leading "&" into the subroutine that appears below... In other words, the problem seems to be that there is nothing I can figure out that will get the parameter string into the QUERY_STRING part of the environment.
This mostly captures my past experiences with PERL... Enlightenment eludes me.
In particular, I cannot understand why the explicit command line assignment to QUERY_STRING fails. That is both the assignment in a PERL command line and the assignment with the shell set command. "These are not the ENV variables you are searching for..."
Right now I feel like rewriting the entire thing in Python. Is that sacrilegious, or just practical?
sub html_parse { local($line, $length, $offset, @pairs); # Just use a GET and the one line? $line = $ENV{"QUERY_STRING"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Running a CGI script from a command line?
by hippo (Archbishop) on Jun 17, 2015 at 09:03 UTC | |
|
Re^3: Running a CGI script from a command line?
by Anonymous Monk on Jun 17, 2015 at 09:26 UTC | |
by shanen (Initiate) on Jun 18, 2015 at 05:40 UTC | |
by afoken (Chancellor) on Jun 25, 2015 at 09:02 UTC | |
by shanen (Initiate) on Jun 25, 2015 at 06:09 UTC |