Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: error @ line7

by daxim (Chaplain)
on Mar 07, 2013 at 11:38 UTC ( #1022210=note: print w/ replies, xml ) Need Help??

in reply to error @ line7

With CGI, you are learning an obsolescent technology. A Web program in the year 2013 looks like that:

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] ] };
Save it as app.psgi, run it with plackup.

Comment on Re: error @ line7
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-11-27 01:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (711 votes), past polls