You could run your CGI script via command line and redirect the output to a file.
perl myscript.cgi name='user name' dob='September 2003' > need.html
Where 'name' and 'dob' are the names of the form entities you'd normally fill out/check/click and the strings are the values that would be assigned if you had filled out/checked/clicked said form objects.
UPDATE:
Another monk advised me that this would be a little too much to type on the command line if you had several form elements. So, if you do, put them into a file:
$cat input.txt
name='user name'
dob='Sep 2003'
state='IL'
city='Chicago'
county='cook'
So the script could be run as:
perl myscript.cgi < input.txt > output.html
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|