jfrm has asked for the wisdom of the Perl Monks concerning the following question:
Unfortunately, every time the following is called,use CGI::Carp qw(fatalsToBrowser);
it produces a bunch of errors on the resulting webpage. For example:require MIME::Lite; $MIME::Lite::PARANOID = 1;
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
|
|---|