Re: warning handling in Perl scripts - Mailing list pgsql-hackers

From Tom Lane
Subject Re: warning handling in Perl scripts
Date
Msg-id 19763.1340631322@sss.pgh.pa.us
Whole thread Raw
In response to Re: warning handling in Perl scripts  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: warning handling in Perl scripts
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On sön, 2012-06-24 at 16:05 -0400, Robert Haas wrote:
>>> +local $SIG{__WARN__} = sub { die $_[0] };

>> This seems like a band-aid.

> I'd think of it as a safety net.

+1 for the concept of turning warnings into errors, but is that really
the cleanest, most idiomatic way to do so in Perl?  Sheesh.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "ktm@rice.edu"
Date:
Subject: Re: libpq compression
Next
From: Andres Freund
Date:
Subject: Re: Catalog/Metadata consistency during changeset extraction from wal