Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2016-05-26 20:10 GMT
Find Nodes?
    Voting Booth?