Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: plackup problem

by Your Mother (Canon)
on Nov 10, 2013 at 00:51 UTC ( #1061878=note: print w/ replies, xml ) Need Help??


in reply to plackup problem

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" ] ]; }


Comment on Re: plackup problem
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-07-25 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls