Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Errors uncaught by CGI::Carp

by pryrt (Abbot)
on Oct 15, 2021 at 14:17 UTC ( [id://11137584]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use 5.012; # strict, //
    use warnings;
    print "Content-Type: text/plain;\n";    # the missing \n will cause a 
    +500 return code, even though your script has no fatal error, and no d
    +ie
    print "Hello World\n";
    
  2. or download this
    #!/usr/bin/perl
    use 5.014; # strict, //, s//r non-destructive
    ...
    print "Hello World\n";
    
    __END__
    
  3. or download this
    DEBUG 329772 Fri Oct 15 14:06:30 2021: Content-Type: text/plain;
    DEBUG 329772 Fri Oct 15 14:06:30 2021: Hello World
    DEBUG 330420 Fri Oct 15 14:06:42 2021: Content-Type: text/plain;
    DEBUG 330420 Fri Oct 15 14:06:42 2021:
    DEBUG 330420 Fri Oct 15 14:06:42 2021: Hello World
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found