Brothers, here's the thing. I
use CGI::Carp qw(fatalsToBrowser);
Unfortunately, every time the following is called,
require MIME::Lite; $MIME::Lite::PARANOID = 1;
it produces a bunch of errors on the resulting webpage. For example:
Software error: Can't locate MIME/Types.pm in @INC (@INC contains: T:/Program Files/In +digoPerl/lib c:/Program Files/IndigoPerl/lib c:/Program Files/IndigoP +erl/site/lib .) at (eval 12) line 3. For help, please send mail to the webmaster (webmaster@mastersgames.co +m), giving this error message and the time and date of the error. Con +tent-type: text/html Software error: Can't locate Mail/Address.pm in @INC (@INC contains: T:/Program Files/ +IndigoPerl/lib c:/Program Files/IndigoPerl/lib c:/Program Files/Indig +oPerl/site/lib .) at (eval 13) line 3. For help, please send mail to the webmaster (webmaster@mastersgames.co +m), giving this error message and the time and date of the error. Con +tent-type: text/html Software error: Can't locate Net/LocalCfg.pm in @INC (@INC contains: T:/Program Files/ +IndigoPerl/lib c:/Program Files/IndigoPerl/lib c:/Program Files/Indig +oPerl/site/lib .) at c:/Program Files/IndigoPerl/site/lib/Net/Config. +pm line 12. For help, please send mail to the webmaster (webmaster@mastersgames.co +m), giving this error message and the time and date of the error. Con +tent-type: text/html Software error: The getpwuid function is unimplemented at c:/Program Files/IndigoPerl/ +site/lib/Net/Config.pm line 41.

I can't see how to get rid of these; the paranoid switch doesn't seem to do it. Don't particularly wish to locate all the packages and install them. So my solution was to simply turn off CGI::Carp qw(fatalsToBrowser) before called the Mime::Lite module and then turn it back on afterwards.

Is this possible? Or perhaps you higher brothers have some better way of approaching life?

thanks for any wisdom.

20040120 Edit by Corion: Fixed formatting, added CODE tags around error message


In reply to Turning off carp(fatalsToBrowser) [briefly]? by jfrm

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.