in reply to Re^4: Plack beer challenge (#! args)
in thread Plack beer challenge
If what tye is saying has merit, since plackup is all of 9 lines, you could use
#!/home/mh/perl514/bin/perl -- use strict; use warnings; use Plack::Runner; my $app = sub { return [ 200, [ "Content-Type" => "text/plain" ], ["hi"] ]; }; my $runner = Plack::Runner->new; $runner->parse_options( qw{ -s FCGI --listen / tmp /fcgi.sock --daemonize --nproc 10 }); $runner->run($app); __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Plack beer challenge (#! args)
by morgon (Priest) on Sep 30, 2011 at 14:41 UTC | |
by Anonymous Monk on Oct 01, 2011 at 02:02 UTC |