develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH B::Deparse] Make warnings handling more robust

Thread Previous | Thread Next
From:
Graham Barr
Date:
July 5, 2001 11:24
Subject:
Re: [PATCH B::Deparse] Make warnings handling more robust
Message ID:
20010705192237.U52398@pobox.com
On Thu, Jul 05, 2001 at 07:19:46PM +0100, Robin Houston wrote:
> Mike Guy wrote:
> > That seems to be a lot of work just to achieve a pessimised version of
> > use constant WARN_MASK => $warnings::Bits{all} | $warnings::DeadBits{all};
> 
> No no no! L<warnings::register> actually changes the value of those
> variables; the point is that I want the value *before* warnings::register
> has messed with them. Or are you misunderstanding how "use constant"
> works?

I don't think he does. What you had and what Mike wrote should have identical
results.

Graham.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About