Skip Menu |

This queue is for tickets about the Net-SNMP CPAN distribution.

Report information
The Basics
Id: 39012
Status: resolved
Worked: 1 min
Priority: 0/
Queue: Net-SNMP

People
Owner: dtown [...] cpan.org
Requestors: chris [...] noodles.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net::SNMP 5.2.0 - VERSION Bug
Date: Fri, 05 Sep 2008 13:11:23 +0100
To: bug-Net-SNMP [...] rt.cpan.org, dtown [...] cpan.org
From: Chris Mason <chris [...] noodles.org.uk>
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".
Subject: 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".
Closing ticket.