Save it as app.psgi, run it with plackup.use strict; use diagnostics; my $html = <<'HTML'; <!DOCTYPE html> <html> <head> <title>My First PSGI Script</title> </head> <body> <h1>This is a pretty lame Web page</h1> <p>Who are these perlmonks, anyway?</p> </body> </html> HTML my $app = sub { return [ 200, ["Content-Type" => 'text/html'], [$html] ] };
In reply to Re: error @ line7
by daxim
in thread error @ line7
by Monk_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |