locked appears more than two dozen times in Net::SNMP. That makes it a bit difficult to offer anything very specific responsive to your characterization of the warning re "line XXXX" as "spam" but have you reviewed the new deprecations in the 5.12 delta?

The readme.txt in snmpenum.pl does not meet my specs for comprehensiveness. In itself, that script is pretty straightforward, but groking all that's in the 3k+ lines of Net::SNMP is beyond the scope of this reply.

When you say "...it is the exact same version of the Net::SNMP...." do you mean that the version of the module you're using under Windows is line-for-line identical to that you're using under UNIX (ignoring only \r\n-type variances) or something less global? And are you running with 5.12.n on both the UNIX and the Windows machines?

Have you explored what happens when you try this (on Windows) with an earlier version of Perl -- say 5.8.n or 5.10.1? See some of the replies to Wow! Painful upgrade to Perl 5.12

Update:

Taking my own advice and actively heeding the surmise (below) from syphilis, this answer, from the 5.12 delta, leaps out:

Potentially Incompatible Changes ^
Deprecations warn by default

Over the years, Perl's developers have deprecated a number of language features for a variety of reasons. Perl now defaults to issuing a warning if a deprecated language feature is used. Many of the deprecations Perl now warns you about have been deprecated for many years. You can find a list of what was deprecated in a given release of Perl in the perl5xxdelta.pod file for that release.

To disable this feature in a given lexical scope, you should use no warnings 'deprecated'; (Emphasis supplied) For information about which language features are deprecated and explanations of various deprecation warnings, please see perldiag.pod.

And, from perldiag.pod,

=item Attribute "locked" is deprecated

(D deprecated) You have used the attributes pragam to modify the "locked" attribute on a code reference. The :locked attribute is obsolete, has had no effect since 5005 threads were removed, and will be removed in the next major release of Perl 5.

In reply to Re: Unable to suppress warnings using PAR-Packer on Win32 with Strawberry Perl by ww
in thread Unable to suppress warnings using PAR-Packer on Win32 with Strawberry Perl by wojtyk

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.