On Fri, 17 Apr 2009 06:46 -0400, "David Golden" <[email protected]> wrote: > On Thu, Apr 16, 2009 at 10:18 AM, Jonathan Yu <[email protected]> > wrote: > > When the version pragma is used, META.yml creates files which have a > > stringification of the $VERSION. This causes problems if version > > objects are used, since the object becomes stringified as a v-string, > > like: "v1.1" vs the "1.001" format that CPAN expects. > > There's absolutely nothing wrong with "v1.1". PAUSE/CPAN handle that > just fine. It might not be the best way to do it, but once that style > got out into the wild, the tools adapted.
MOST of the tools have adapted, I think. They aren't all there yet, and it isn't perfect yet (M::I, in particular, can't compare versions if you give it a numeric version to compare against when your module is using a v-string, which is a little clumsy.) That's why my versions are $VERSION = version->new(0.170_004)->numify(); at the moment. > Moreover, the "version" of a distribution should (I would even say > "must") match the "version" component of the tarball uploaded to CPAN. It IS a must. I found that out when I tried to take the v out of a filename. PAUSE will rename the file if you did. --Curtis -- Curtis Jewell [email protected] %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail] -- Curtis Jewell [email protected] %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail]
