Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 128166
Status: open
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: j.mccanta [...] f5.com
Cc:
AdminCc:

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



Subject: DBI version 1.640 is reporting as 1.64. This breaks some version checks.
Date: Fri, 4 Jan 2019 18:39:44 +0000
To: "bug-DBI [...] rt.cpan.org" <bug-DBI [...] rt.cpan.org>
From: Jay McCanta <J.McCanta [...] F5.com>
DBI-1.640 The $VERSION symbol exported is exported with: $VERSION = eval $VERSION; This make 1.640 be version 1.64. Special handling is required to compare versions. This is the version bundled with Ubuntu Bionic Beaver. In the future, let version be a string. [https://cdn.f5.com/webcommon/email-signature/images/f5-logo-rgb-30x30.jpg]<https://f5.com/> Jay McCanta | Principal Systems Administrator D +1 (206) 272-7998 M +1-206-434-1080
Download image001.jpg
image/jpeg 39.2k
image001.jpg
Can you elaborate on what version checks this is causing problems with? Because those version checks are almost certainly broken. That said, I do think it would be better to preserve the versions as strings, mainly to aid with human comprehension in error messages etc. In my modules I usually use: $VERSION =~ tr/_//d; to accomplish the same thing as the eval is usually intended for.