mje,

Thank you for the feedback.

This would not work for some code I use as warnings are often issued with warn()
If you are referring to warn, then there is no problem. use warnings FATAL => 'all'; will not cause a warn to die, as shown by this example:
use warnings FATAL => 'all'; use strict; warn "foo\n"; warn "bar\n"; __END__ foo bar

I have never used Log::Log4perl (or any similar logging modules), but I would be surprised if it promoted its warnings to fatals. When I get a chance, I will try to figure out how to use the Log module to confirm your assertion. Feel free to post a small example which proves this. Thanks for pointing this out.

UPDATE: Here is my 1st attempt at using Log::Log4perl. In this mode, the warning is not promoted to a fatal. I have more to learn about the module.

use strict; use warnings FATAL => 'all'; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($DEBUG); WARN("foo"); DEBUG "A low-level message"; ERROR "Won't make it until level gets increased to ERROR"; WARN('bar'); __END__ 2011/10/12 21:05:08 foo 2011/10/12 21:05:08 A low-level message 2011/10/12 21:05:08 Won't make it until level gets increased to ERROR 2011/10/12 21:05:08 bar
I also tried the Core Log::Message module, and I did not observe warnings turning into fatals there either.

In reply to Re^2: Get stricter with use warnings FATAL => 'all'; by toolic
in thread Get stricter with use warnings FATAL => 'all'; by toolic

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.