Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Commenting out carpout causes script to hang

by philcrow (Priest)
on Oct 10, 2007 at 15:28 UTC ( [id://643985]=note: print w/replies, xml ) Need Help??


in reply to Commenting out carpout causes script to hang

Is it possible that CGI::Carp was the only thing making headers? I read in the docs:
Fatal errors will now be echoed to the browser as well as to the log. CGI::Carp arranges to send a minimal HTTP header to the browser...
which makes me suspect that you aren't sending headers in any other way. But that's just my best guess without running any code.

Phil

The Gantry Web Framework Book is now available.
  • Comment on Re: Commenting out carpout causes script to hang

Replies are listed 'Best First'.
Re^2: Commenting out carpout causes script to hang
by punch_card_don (Curate) on Oct 10, 2007 at 15:48 UTC
    Best guesses are what I'm looking for!

    But in this case

    print "Content-type: text/html\n\n";
    is the very next line in the script after what I posted above.
      Then my only other advice is to stop the script short at various points:
      print "got to here\n"; exit;
      Move it down until something goes wrong.

      Phil

      The Gantry Web Framework Book is now available.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found