Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: On "fixing" Perl core modules "in place"

by derby (Abbot)
on May 17, 2006 at 11:31 UTC ( #549996=note: print w/ replies, xml ) Need Help??


in reply to On "fixing" Perl core modules "in place"

this person considers that CGI::Carp produces error messages that would be confusing to most users

Umm ... did the person even bother to read the docs for CGI::Carp:

You may also pass in a code reference in order to create a custom error message. At run time, your code will be called with the text of the error message that caused the script to die. Example:

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); }

-derby


Comment on Re: On "fixing" Perl core modules "in place"
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://549996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-11-28 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (199 votes), past polls