Perler#2 has asked for the wisdom of the Perl Monks concerning the following question:
So ive been following the Beginning Perl (Curtis 'Ovid' Poe)tutorial found here, http://web.archive.org/web/20120624221651/http://ofps.oreilly.com/titles/9781118013847/the_interwebs.html, and ive run into a bit of a snag. whenever i try to run plackup on the command prompt it just gives me the error message, PSGI app should be a code reference: undef at C:/Dwimper/perlsite/lib/Plack/Middleware/Lint.pm line 13, i checked there and i think its failing because the app im trying to run does not equal a reference to some variable called 'CODE', but i cant understand why. here is a copy of the test app im trying to run
sub app { my $env = shift; return [ '200', [ 'Content-Type' => 'text/plain' ], [ "Hello World" ] ]; }
sorry if this is a stupid question or if there are any formatting errors its my first post
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: plackup problem
by Your Mother (Archbishop) on Nov 10, 2013 at 00:51 UTC | |
|
Re: plackup problem
by three18ti (Monk) on Nov 09, 2013 at 22:47 UTC | |
by Your Mother (Archbishop) on Nov 10, 2013 at 00:47 UTC |