Skip Menu |

This queue is for tickets about the Cache-Mmap CPAN distribution.

Report information
The Basics
Id: 32590
Status: open
Priority: 0/
Queue: Cache-Mmap

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

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



CC: John Peacock <jpeacock [...] cpan.org>
Subject: Version Comparison Bug
Date: Wed, 23 Jan 2008 11:16:58 -0800
To: bug-Cache-Mmap [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Under Perl 5.10, Cache::Mmap yields this warning: Version string '' contains invalid data; ignoring: '' at /usr/local/ lib/perl5/site_perl/5.10.0/darwin-2level/Cache/Mmap.pm line 36. The solution is to use a more modern version comparison. It currently has this: use constant has_utf8 => defined($^V) && $^V ge "\5\6\0"; I've Cc'd John Peacock, master of all things Version. John, can you recommend a more correct and backwards compatible way to do this? Thanks, David
CC: bug-Cache-Mmap [...] rt.cpan.org
Subject: [rt.cpan.org #32590] Re: Version Comparison Bug
Date: Wed, 23 Jan 2008 14:52:25 -0500
From: John Peacock <john.peacock [...] havurah-software.org>
David E. Wheeler wrote: Show quoted text
> use constant has_utf8 => defined($^V) && $^V ge "\5\6\0";
Ick. That was always a bad idea (Perl documentation notwithstanding). This is guaranteed to work everywhere: use constant has_utf8 => $] >= 5.006_000; HTH John
On Wed Jan 23 14:52:40 2008, john.peacock@havurah-software.org wrote: Show quoted text
> David E. Wheeler wrote: >
> > use constant has_utf8 => defined($^V) && $^V ge "\5\6\0";
> > Ick. That was always a bad idea (Perl documentation notwithstanding). > > This is guaranteed to work everywhere: > > use constant has_utf8 => $] >= 5.006_000;
BUMP! Any chance of a new release with this issue fixed? Thanks, David
From: pmh [...] edison.ioppublishing.com
On Mon Apr 14 17:26:41 2008, DWHEELER wrote: Show quoted text
> BUMP! > > Any chance of a new release with this issue fixed?
Thanks for the reminder. I've just uploaded 0.10 to PAUSE
Subject: Re: [rt.cpan.org #32590] Version Comparison Bug
Date: Tue, 15 Apr 2008 09:09:21 -0700
To: bug-Cache-Mmap [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On Apr 15, 2008, at 02:30, Peter Haworth via RT wrote: Show quoted text
>> BUMP! >> >> Any chance of a new release with this issue fixed?
> > Thanks for the reminder. I've just uploaded 0.10 to PAUSE
Great, thanks! David