in reply to Re: Difference Between use warnings and use warnings FATAL => 'all'
in thread Difference Between use warnings and use warnings FATAL => 'all'

There is a difference between warnings and errors; and treating them both the same is like treating gangrene and a paper cut equally with amputation.

It's worse than that. p5p is cautious about adding exceptions for previously working code, at least without requiring users to use the feature pragma or an explicit version number. p5p is much more willing to add warnings where they did not exist before.

Code which unilaterally converts warnings to exceptions could find itself dying of exceptions when run on a new release of Perl, whereas code which enables warnings would (merely) add to the warning logs. That's a risk I'm not willing to take for most code.

Edit to add: I know BuK already knows everything I wrote, but his message was the best place to put this reminder for everyone else.

  • Comment on Re^2: Difference Between use warnings and use warnings FATAL => 'all'
  • Download Code

Replies are listed 'Best First'.
Re^3: Difference Between use warnings and use warnings FATAL => 'all'
by BrowserUk (Patriarch) on Dec 28, 2013 at 22:30 UTC
    Edit to add: I know BuK already knows everything I wrote,

    Knowing (somewhere, deep down; maybe) and having thought about the consequences are two different things.

    I stand as a one of those gratefully reminded. Thank you.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.