O great monks, I beg your patience as I ask a question which is tangentally related to Perl.

I have written a web application in Perl, which works using CGI under Apache. I have been asked to come up with a version that will work on a notebook PC. Now, the obvious choice is to install Apache on the notebook and let 'er rip. But, installing Apache or IIS on PC's is banned outside the development environment. Also, this hardware is old, and Apache on Windows isn't exactly lightweight.

Has anyone in the Monestary found a lightweight HTTP server that supports Perl CGI? I have tried both Google and SuperSearch, but perhaps I am searching foolishly, for I have found no answer. My only other option is to write a new Tk- or Win32::GUI-based interface for the thing; obviously a more painful process.

Of course, I would give preferrential treatment to HTTP servers that are cross-platform. Anyhow, I thank you all in advance for any help ye can give.

Update: At least two people have suggested RYO solutions. And, while I am thankful for their module recommendations, unfortunately I think I'd be better off writing a Tk interface (which I know how to do) than implementing my own HTTPd (which I've never done before).

Update: Thanks to all the monks for the many suggestions. After considering many of them, I settled on HTTPi, which is pure Perl and rather fast. It also gives me all the %ENV vars I need, handles IP-based restriction (e.g. configured to allow connections only from 127.0.0.1) and runs Perl CGI quite well.

radiantmatrix
require General::Disclaimer;
s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}


In reply to Lightweight equivalent of Apache/CGI? by radiantmatrix

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.