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
In reply to plackup problem by Perler#2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |