Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: CGI::Carp won't send fatalsToBrowser

by converter (Priest)
on Dec 12, 2001 at 21:52 UTC ( #131313=note: print w/replies, xml ) Need Help??

in reply to CGI::Carp won't send fatalsToBrowser

If I understand your complaint, scripts that formerly sent fatal errors to STDOUT with mark-up now send fatal errors to STDERR.

Another monk gave you a good piece of advice: run the program from the command line. If you see something like the output from the one-liner included below, then you'll know that CGI::Carp is doing what it's supposed to. If not, then something is probably broken somewhere (how helpful is that?!).

Have any of the modules you're using been been upgraded recently? What about perl? Have there been any changes to the server software or configuration? Are there other users you could check with to see if they're experiencing the same problem?

$ perl -Mstrict -wle 'use CGI qw/:standard/; use CGI::Carp qw/fatalsTo +Browser/; print header, h1("hello"); $test = 1' Content-type: text/html <H1>Software error:</H1> <PRE>Global symbol &quot;$test&quot; requires explicit package name at + -e line 1. Execution of -e aborted due to compilation errors. </PRE> <P> For help, please send mail to this site's webmaster, giving this error + message and the time and date of the error. [Wed Dec 12 10:44:45 2001] -e: Global symbol "$test" requires explicit + package name at -e line 1. [Wed Dec 12 10:44:45 2001] -e: Execution of -e aborted due to compilat +ion errors.


Replies are listed 'Best First'.
Re: Re: CGI::Carp won't send fatalsToBrowser
by George_Sherston (Vicar) on Dec 12, 2001 at 23:26 UTC
    Thanks... alas, I don't have command line access - it's an ISP. It may well be that they made some changes to some modules. I'll try and find out. I am getting Carp-style output to the error log, so something is going right. I know this because my error log looks different if I turn CGI::Carp off. It's just that the output is now not getting into the browser. But I'm reassured to know that I may not be going mad after all :)

    George Sherston

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://131313]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-05-25 21:45 GMT
Find Nodes?
    Voting Booth?