demerphq wrote:
The module I love to hate. Some other modules eval its version number
as a
numeric, and report many errors because 2.121_04 is not numeric. Death
to dev
versions!
Yeah, thats not all that unusual unfortunately. Maybe somebody should
put together a patch for blead so $VERSION is special cased not to
produce this warning.
That works fine in blead; it is older Perl releases that choke on the
underscore. The correct fix is:
our $VERSION = '2.121_04';
$VERSION = eval $VERSION;
which _always_ works. The first line is used by packagers to set the
name of the tarfile and the second line keeps older UNIVERSAL::VERSION
subs happy.
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748