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

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

Thread Previous | Thread Next
Robin Houston
July 5, 2001 11:44
Re: [PATCH B::Deparse] Make warnings handling more robust
Message ID:
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.

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


Straw? No, too stupid a fad! I put soot on warts.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About