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