in reply to CGI Carp
Have you checked the changelog?
http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI/Carp.pm
http://search.cpan.org/src/LDS/CGI.pm-2.89/cgi_docs.html
I vaguely, vaguely, vaguely recall this working a long time ago, but it doesn't appear to be currently ;)(time for a bug report i'd say)use CGI::Carp qw(fatalsToBrowser set_message); BEGIN { sub handle_errors { my $msg = shift; print "<h1>Oh gosh</h1>"; print "<p>Got an error: $msg</p>"; } set_message(\&handle_errors); } In order to correctly intercept compile-time errors, you should call s +et_message() from within a BEGIN{} block.
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI Carp
by Anonymous Monk on Feb 07, 2003 at 15:22 UTC | |
|
Re: Re: CGI Carp
by Anonymous Monk on Feb 07, 2003 at 15:48 UTC |