|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: no webserver(apache)? no problem! test .cgi with Plack/plackupby Your Mother (Canon) |
| on Apr 04, 2011 at 17:29 UTC ( #897369=note: print w/ replies, xml ) | Need Help?? |
|
++ I'm commenting mostly just to bump this excellent piece of advice. Since port is rarely important and I like to use this idiom in addition to running a traditional webserver on port 80, I'd shorten it to use the default port 5000– plackup -L Shotgun -MPlack::App::WrapCGI -e "Plack::App::WrapCGI->new(script => shift)" [cgi]–which lends itself to an alias–
Update: anonymous monk that replied is quite correct. The code, as is, is broken.
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||