in reply to write a small Perl HTTP server
They probably don't get much smaller than this "one-liner" from the IO::All pod.
I'm not sure how well, or even if it works, but...it comes with a good pedigree.# A single statement web server for static files and cgis too io(":8080") ->accept("-fork") ->( sub { $_[0] < io( -x $1 ? "./$1 |" : $1) if /^GET \/(.*) / } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: write a small Perl HTTP server
by samtregar (Abbot) on Jul 08, 2004 at 19:58 UTC | |
|
Re^2: write a small Perl HTTP server
by gaal (Parson) on Jul 08, 2004 at 20:01 UTC | |
by bart (Canon) on Jul 09, 2004 at 06:11 UTC | |
by gaal (Parson) on Jul 09, 2004 at 16:43 UTC | |
by Anonymous Monk on Jul 09, 2004 at 17:36 UTC | |
by gaal (Parson) on Jul 09, 2004 at 17:57 UTC |