Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://549996]
help
Chatterbox?
[ambrus]: Corion: I don't understand what you mean by protocol-only here. Can you explain why AnyEvent::HTTP is wrong for you? Are you a HTTP client or a server?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2016-12-07 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.