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"};
In reply to Re^2: Running a CGI script from a command line?
by shanen
in thread Running a CGI script from a command line?
by shanen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |