Short version: http://search.cpan.org/src/JESSE/HTTP-Server-Simple-0.27/t/04cgi.t
Example of a big user: http://search.cpan.org/src/JESSE/Jifty-0.70422/lib/Jifty/Server.pm You need to subclass HTTP::Server::Simple::CGI, and implement handle_request. You get a CGI.pm object you can tweak. How you dispatch off external programs is up to you. (After all, that's not part of HTTP...) On 5/28/07, Offer Kaye <[EMAIL PROTECTED]> wrote: > On 5/28/07, Gaal Yahas wrote: > > > > HTTP::Server::Simple > > > > The devil is in the details... > The problem with "HTTP::Server::Simple" is that it leaves all the > actual server code - the stuff that makes it actually *do* something, > for me to write, only I have no experience in this and there are no > examples that come with it. If you have a working example of code that > uses HTTP::Server::Simple to provide a working server with a cgi-bin > directory (or whatever name) where I can throw in Perl scripts like > the docperl ones and have them work when I point to > http://localhost:port/cgi-bin/docperl.pl (or whatever, I'm just > guessing here, no real idea how this should work) that would be really > great. > > Thanks, > -- > Offer Kaye > _______________________________________________ > Perl mailing list > [email protected] > http://perl.org.il/mailman/listinfo/perl > -- Gaal Yahas <[EMAIL PROTECTED]> http://gaal.livejournal.com/ _______________________________________________ Perl mailing list [email protected] http://perl.org.il/mailman/listinfo/perl
