Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.

conv


In reply to Re: CGI::Carp won't send fatalsToBrowser by converter
in thread CGI::Carp won't send fatalsToBrowser by George_Sherston

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found