Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

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

Owner: Nobody in particular
Requestors: j.mccanta [...]

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 [...]" <bug-DBI [...]>
From: Jay McCanta <J.McCanta [...]>
Download (untitled) / with headers
text/plain 455b
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. []<> Jay McCanta | Principal Systems Administrator D +1 (206) 272-7998 M +1-206-434-1080
Download image001.jpg
image/jpeg 39.2k
Download (untitled) / with headers
text/plain 390b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to