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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.