Hi,
The VERSION scalar in Net::SNMP is defined incorrectly and should be
within quotes:
Net/SNMP.pm (Line 109):
our $VERSION = v5.2.0;
When querying $Net::SNMP::VERSION to determine the version this responds
with rubbish. Following other Perl VERSION scalars this should be
defined as:
our $VERSION = '5.2.0';
Thanks,
Chris
You should not directly access the $VERSION variable of a module. All
blessed objects inherit a VERSION() method from the UNIVERSAL module
(http://www.perl.com/doc/manual/html/lib/UNIVERSAL.html). The Net::SNMP
module uses a v-string to defined its version and a call to the
VERSION() method will return an "old style" floating point version of
"5.002000".
Fri Sep 05 08:35:13 2008The RT System itself - Status changed from 'new' to 'open'
Fri Sep 05 08:35:14 2008dtown [...] cpan.org - Status changed from 'open' to 'resolved'
Fri Sep 05 08:35:15 2008dtown [...] cpan.org - Given to DTOWN
Re: [rt.cpan.org #39012] Net::SNMP 5.2.0 - VERSION Bug
Date:
Fri, 05 Sep 2008 15:30:54 +0100
To:
bug-Net-SNMP [...] rt.cpan.org
From:
Chris Mason <chris [...] noodles.org.uk>
Apologies.... Obviously my lack of Perl understanding...
Thanks,
Chris
David M. Town via RT wrote:
Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=39012 >
>
> You should not directly access the $VERSION variable of a module. All
> blessed objects inherit a VERSION() method from the UNIVERSAL module
> (http://www.perl.com/doc/manual/html/lib/UNIVERSAL.html). The Net::SNMP
> module uses a v-string to defined its version and a call to the
> VERSION() method will return an "old style" floating point version of
> "5.002000".
Fri Sep 05 10:33:03 2008The RT System itself - Status changed from 'resolved' to 'open'