On Wed, Feb 18, 2009 at 11:22 PM, Elliot Shank <[email protected]> wrote: > I like to declare module versions like so: > > use version; our $VERSION = qv('v1.2.3'); > > The problem with this comes with the distmeta action. The version object > gets stringified and not numified before putting it into META.yml, which > needs to contain actual numbers. So here's a quick hack that seems to work > for me. Before I put together a proper patch, is this the correct approach? > Could these things be objects but not version.pm objects?
Why do you think it should be numified and not stringified? By stringifying, it's clear that it came from a version object. By numifying, there's no such indication. Moreover, that would mean that the version in META.yml would not match the version on the tarball (which is stringified) and that gets used for indexing. XY Problem? -- David
