Just remove the sub name. Instead of returning a sub reference, you are declaring a sub. Since you aren’t using $env and the return is implicit, just as the the return of the sub is, you can even shorten it to this (again, some style room so do what you like or find most readable)–
sub { [ 200, [ 'Content-Type' => 'text/plain' ], [ "Hello World" ] ]; }
In reply to Re: plackup problem
by Your Mother
in thread plackup problem
by Perler#2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |