I copied and pasted the code that was suggested for Carp (below) and ran it and
I can't get it to work.  Does anyone know what's wrong with it?  Thanks
Miles

> use CGI::Carp qw(fatalsToBrowser set_message);
>
> BEGIN {
> sub handle_errors {
>     my $msg = shift;
>     print h1('Oh gosh');
>     print p, "Got an error: $msg";
>     print p, "Please send the text of this error message to: ";
>     print a({-href=>'mailto:[EMAIL PROTECTED]',
> '[EMAIL PROTECTED]');
> }
> set_message(\&handle_errors);
> }
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to