logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Module::Build] Buglet: Creative use of $VERSION confuses M::B: msg#00203

Subject: Re: [Module::Build] Buglet: Creative use of $VERSION confuses M::B
Randy W. Sims wrote:
> Ken Williams wrote:
> > Johan Vromans wrote:
> > > Probably the best pseudo-solution to this pseudo-parsing problem is
> > > to stop parsing after the first successful assignment, and put a
> > > remark in the documentation.
> >
> > I believe that's what we actually do now, in the latest beta versions.
>
> It is except for one location when a fully-qualified package name is
> used: $Foo::Bar::VERSION vs $VERSION
>
> I can fix that, or I can allow successive expressions involving the same
> VERSION. I already put together a patch for it. It would allow arbitrary
> expressions like
>
> $VERSION = '1.01';
> $VERSION = $VERSION + 1;
> $VERSION += 2;
> [...]

No, at least not until version.pm support is fully working.  (Will that be 
in 0.28?  And will 0.28 be out soon?)  Otherwise you'd break things like:

| our $VERSION = '1.099.001';  # fake version for META.yml/CPAN
| $VERSION = '1.099001';       # real numerical version

...which has been a working work-around so far.

Attachment: pgpcpa3afW9Qp.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>