in reply to Unable to suppress warnings using PAR-Packer on Win32 with Strawberry Perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unable to suppress warnings using PAR-Packer on Win32 with Strawberry Perl
by wojtyk (Friar) on May 19, 2010 at 17:51 UTC |