in reply to How does this code work (warnings.pm)?

If I understand your question correctly, you are asking why enabling all warnings doesn't enable warnings that don't exist yet? I think it's because it doesn't know what warnings will exist until they do exist. That doesn't mean I think it's an unreasonable idea, just that the current implementation makes it a little tricky. This is a core module, so any proposals to change it should be directed to p5p.

  • Comment on Re: How does this code work (warnings.pm)?

Replies are listed 'Best First'.
Re: Re: How does this code work (warnings.pm)?
by John M. Dlugosz (Monsignor) on Aug 08, 2002 at 20:22 UTC
    No, I found emperically that it does enable warnings that don’t exist yet, and I don’t see how that’s happening. The code looks like it should, like you say, be unaware of them and they are created as off.

    —John