in reply to Running CGI scripts without a server

Yeah, sure, here's an example from my harddrive
E:\dev\LOOSE>perl pod.wiki.cgi Title: index Content-Type: text/html; charset=ISO-8859-1 <html><head><title>index</title></head><body><table width='100%'><tr>< +td><table width='100%'><tr><td align='left'><a href='/pod.wiki.cgi/di +s play/AllNodes'>AllNodes</a></td><td align='center'>CGI::Wiki::Simple W +iki</td><td align='right'><form method=post action='/pod.wiki.cgi'><i +n put type='text' name='node' /><input type='hidden' name='action' value +='display' /><input type='submit' value='go' /></form></td></tr></tab +l e>index</td></tr></table><hr /><p>Welcome to a CGI::Wiki::Simple wiki. +</p> <p>The current formatter is <b>CGI::Wiki::Formatter::Default</b></p> <p>There are no <em>implicit</em> links,only <strong>explicit</strong> + ones (as in <TT>&#91;<a href="/pod.wiki.cgi/display/link%20text">lin +k text</a>&#93;</TT> or <TT>&#91;<a href="/pod.wiki.cgi/display/link">t +itle</a>&#93;</TT>)</p> <p>Newlines are taken litelarlly (all lines are wrapped in like <em>&l +t;p&gt;this&lt;/p&gt;</em>).</p> <p>Two single quotes make enclosed text italicized like <em>&quot; thi +s &quot;</em> (you can safely say Rock'n'Roll)</p> <p>Dis&lt;boy&gt;allowed&lt;/boy&gt; html &lt;SCRIPT&gt;disallowed htm +l&lt;/script&gt; &lt;boy&gt;&lt;girl&gt;&lt;/boy&gt;&lt;/girl&gt;</p> <p><pre>Pre tags are allowed</pre></p> <hr /><a href='/pod.wiki.cgi/preview/index'>edit</a> <center> <form method=post action='http://dev.localhost/LOOSE/pod.wiki.cgi'> <a href='http://dev.localhost/LOOSE/pod.wiki.cgi/display/index'>home</ +a> | Powered by <a href='http://search.cpan.org/search?mode=module&query= +CGI::Wiki'>CGI::Wiki</a>::<a href='http://www.corion.net/cgi-bin/wiki +. cgi/display/CGI%3A%3AWiki%3A%3ASimple'>Simple</a> | <input type='text' name='node' /> <input type='hidden' name='action' value='display' /> <input type='submit' value='go' /> </form> </center> E:\dev\LOOSE>
See, it runs just fine. Web browsers only speak HTTP (you know what I mean) and that means you need a web server your browser can talk to, which in turn executes the CGI scripts for you. Apache is very nice, and there is always HTTP::Daemon (there is also chromatics Jellybean).


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.