The docs on warnings aren't particularly clear on this point to me.

It looks like warnings::register allows me to define a new class of warnings (with the same name as the module). But "uninit value" is already in a class so would disabling the "Contextual::Return" class of warnings disable "uninit value" warnings that come from the Contextual::Return package?

It looks like it only works to disable warnings when the package goes out of its way to use things like warnings::warnif(...) and so I'm doubtful that it has any impact on the warnings being discussed here.

Sorry, I don't have the time/motivation at the moment to construct test cases to answer this question myself (for my version of things, anyway); but I am interested in coming back later and reading more about this. (:

- tye        


In reply to Re^2: I don't care about *your* warnings! (register) by tye
in thread I don't care about *your* warnings! by agianni

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.