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:52
Subject:
Re: [PATCH B::Deparse] Make warnings handling more robust
Message ID:
20010705195105.X52398@pobox.com
On Thu, Jul 05, 2001 at 07:44:07PM +0100, Robin Houston wrote:
> On Thu, Jul 05, 2001 at 07:22:37PM +0100, Graham Barr wrote:
> > > 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.
> 
> I'm terribly sorry. I was getting confused :-|
> 
> The reason that Mike's version gives different (and unhelpful) results is 
> that the 'constant' module itself uses 'warnings::register', which
> changes the value of $warnings::Bits etc.

Ah, OK.

> A much more subtle problem indeed. I hope I didn't cause any offence.

:)

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