Here is the parameter string I want to feed to an old PERL script that I used to run through CGI:

?a_SEARCH_VALUE=^.{44}15&searchfields=all&sensecase=nocase&sorttype=none&datetype=comp&numorname=authnames

My latest of many efforts is the command line:

perl bl.pl <input.txt >output.html

where input.txt just contains that string. For most of my experiments, the resulting HTML file is correct for the case with no input, which is tested in the code.

I clearly don't understand how CGI passes the input parameter string to the PERL interpreter (in a Linux shell), but the best lead here was an old post about this website:

http://stein.cshl.org/WWW/software/CGI/cgi_docs.html

Unfortunately, that website only times out now... I think there is a quick and easy solution, but my chief sin is a lack of hubris?

Can't remember all my other experiments, but another obvious one also failed:

perl bl.pl >output.html "?a_SEARCH_VALUE=^.{44}15&searchfields=all&sensecase=nocase&sorttype= +none&datetype=comp&numorname=authnames"

In reply to Running a CGI script from a command line? by shanen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.