PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: CTlib.pm & warnings
Date: Oct 7 1997 9:31PM

Chuck Griffith wrote:
> 
> When I am using CTlib in a cgi script, I want full control of error
> handling. Unfortunately CTlib.xs has 'warn' calls in it that are
> called when some error conditions occur. This causes problems because
> STDERR output from it has to be routed to /dev/null to keep the web
> server from thinking that there is a problem rather than me sending
> the problem information to the user.
> 
> Is there some other way that I can turn these warn calls off without
> dumping all STDERR output?

$SIG{__WARN__} = sub { };

will ignore all warnings.

I agree that this is a bug, however...

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler