Skip Menu |

This queue is for tickets about the Digest-Whirlpool CPAN distribution.

Report information
The Basics
Id: 40551
Status: resolved
Priority: 0/
Queue: Digest-Whirlpool

People
Owner: Nobody in particular
Requestors: garu [...] cpan.org
Cc:
AdminCc:

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



Subject: $VERSION is not warnings-safe and not working properly (patch included)
Hi, the module version does not appear to be safe from warnings and is not working properly: Show quoted text
> perl -e 'use warnings; use Digest::Whirlpool 1.0'
Argument "1.0.6" isn't numeric in subroutine entry at -e line 1. This is due to your three dots versioning, as version comparison uses numerical comparison. This forbids people to correctly force a given version in their programs (for instance, one might try to force version 1.0.4 or greater to ensure "->add('foo')->digest" sintax will work as expected by doing "use Digest::Whirlpool 1.0.4"). The easy way to fix this while keeping three dot versioning is to change line 7 of Whirlpool.pm from: our $VERSION = '1.0.6'; to: use version; our $VERSION = qv('1.0.6'); I really enjoy Digest::Whirlpool, thanks for all your work in it!
On Fri Oct 31 01:01:14 2008, GARU wrote: Show quoted text
> Hi, > > the module version does not appear to be safe from warnings and is not > working properly: >
> > perl -e 'use warnings; use Digest::Whirlpool 1.0'
> Argument "1.0.6" isn't numeric in subroutine entry at -e line 1. > > This is due to your three dots versioning, as version comparison uses > numerical comparison. This forbids people to correctly force a given > version in their programs (for instance, one might try to force
version Show quoted text
> 1.0.4 or greater to ensure "->add('foo')->digest" sintax will work as > expected by doing "use Digest::Whirlpool 1.0.4"). > > The easy way to fix this while keeping three dot versioning is to
change Show quoted text
> line 7 of Whirlpool.pm from: > > our $VERSION = '1.0.6'; > > to: > > use version; our $VERSION = qv('1.0.6'); > > > I really enjoy Digest::Whirlpool, thanks for all your work in it!
Thanks for the report. I just went with switching to a simpler version number scheme. This is fixed in 1.09 which is now on the CPAN.