David Golden wrote:
I'd strongly suggest the former, since META.yml may be parsed by things
that don't necessarily understand version objects and the "v" will make
them numify as zero. E.g.:
$ perl -e "$v = q{v2.61.129}; print 0+$v"
0
Why would you try and numify it (i.e. +0) and expect anything useful.
The values of META.yml are strings:
$ perl -e '$v = q{v2.61.129}; print $v'
v2.61.129
and with or without the 'v' it will still be a string.
FWIW, Andreas already augmented PAUSE and the CPAN indexer to use
version.pm (almost a year ago, when I noticed that TheDamian was
recommending version objects in PBP). What other parser of META.yml are
you concerned with?
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