It seems that Simon didn't use warnings anywhere, and I am guessing that the top of your .t file might have #!/usr/bin/perl -w or similiar. You will likely need to surpress the warnings within the module itself with a no warnings right after the no strict in UNIVERSAL::AUTOLOAD (although I have not tested this myself). This will at least just disable them for the scope of UNIVERSAL::AUTOLOAD. However if you wanted to get specific, you could figure out which sub-warning this comes from and do use warnings 'something', so that you were not supressing any other valid warnings.

My guess is that those warnings maybe didn't show up in the version of perl that Simon used to write this (what was in common usage in mid. 2002?).

-stvn

In reply to Re: Can't suppress missing package warning by stvn
in thread Can't suppress missing package warning by Ovid

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.