in reply to Turning off carp(fatalsToBrowser) [briefly]?

Uhh, I think you should either fix it (install MIME::Lite, etc), or you remove the require statements that load these modules.
Don't particularly wish to locate all the packages and install them.
But still expect the script to work properly? Think again. You can't just ignore error messages and expect the program to work.

Arjen

Replies are listed 'Best First'.
Re: Turning off carp(fatalsToBrowser) [briefly]?
by jfrm (Monk) on Jan 20, 2004 at 10:27 UTC
    Well I do take your point, thanks for it, and will see what I can do about loading the correct things. However, in fact the program has worked completely properly for more than a year so the error messages are no more than annoying. I believe many of the modules that Mime::Lite uses are optional and I don't use them so I guess that why it works...
      According to the CGI::Carp documentation, you can only turn warningsToBrowser on and off (the warnings will be inserted as HTML comments). I'm afraid that the fatalsToBrowser thing is an all or nothing proposition. You can of course still use CGI::Carp without fatalsToBrowser, but then all the messages will get logged only in the logfiles. This may or may not be appropriate for your purposes.

      Arjen