Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error handling in PERL

Status
Not open for further replies.

Artaniny

Programmer
Joined
Jul 10, 2006
Messages
1
Location
US
I am new in PERL, I was wondering if PERL shows eror messages in the browser (any of them). If yes can anyone tell me how to turn off those errors and redirect the users to a custom build page. This it will fot security purposes.
Thanks all!
-Artani
 
by default it fails to serve any warning to the broser
Code:
use CGI::Carp qw/fatalsToBrowser/;
if you want to see them,(especially for testing) but you're better catching errors and dealing with them through your own custom error handlers

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top