Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: plackup problem

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


in reply to Re: plackup problem
in thread plackup problem

That works. But so does changing the $app line to this–

my $snuffleupagus = \&app;

From the docs–

The last statement of app.psgi should be a code reference that is a PSGI application:

The last statement isn't the sub declaration, it's the assignment. The variable name is meaningless. I personally prefer to just do an anonymous sub { … } as the last or only statement in this kind of test/one-off. But that’s only a style choice.


Comment on Re^2: 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://1061877]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2015-07-30 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls