CGI::Carp error

by David Mintz <mambomintz(at)yahoo.com>

 Date:  Mon, 12 Jun 2000 14:50:47 -0700 (PDT)
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
When I say this:

use CGI::Carp qw(fatalsToBrowser set_message);

BEGIN {
   sub handle_errors {
      my $msg = shift;
      print "<html><head><title>Error</title><body>", 
      "<h1>Error</h1>",
       "<p>Oops: $msg</p></body></html>";
  }   

...as it suggest in the documentation, the server
where I rent says:

"set_message" is not exported by the CGI::Carp module
at /usr/lib/perl5/Exporter.pm line 111
Exporter::export('CGI::Carp', 'main', 'set_message',
'fatalsToBrowser') called at
/usr/lib/perl5/Exporter.pm line 171
Exporter::import('CGI::Carp', 'set_message',
'fatalsToBrowser')
called at /usr/lib/perl5/CGI/Carp.pm line 150
CGI::Carp::import('CGI::Carp', 'fatalsToBrowser',
'set_message') called
at ./draft013.cgi line 11 main::BEGIN() called at
/usr/lib/perl5/CGI/Carp.pm line 0  

So... Can someone tell me the magic words to import
"set_message", if indeed that's the fix? Or could it
be that my provider's Carp is out of date?

PS It works on my Windows 98 system on which I've
installed the Apache for Win32 binary and the
ActiveState Perl distribution 5.005_03

Many thanks,

David Mintz
Web Design & Hosting http://www.dmintzweb.com
Personal http://www.panix.com/~dmintz

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA