Re: [Module::Build] Buglet: Creative use of $VERSION confuses M::B
Status: Beta
Brought to you by:
kwilliams
From: Julian M. <ju...@me...> - 2006-03-28 12:41:42
|
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 =3D '1.01'; > $VERSION =3D $VERSION + 1; > $VERSION +=3D 2; > [...] No, at least not until version.pm support is fully working. (Will that be= =20 in 0.28? And will 0.28 be out soon?) Otherwise you'd break things like: | our $VERSION =3D '1.099.001'; # fake version for META.yml/CPAN | $VERSION =3D '1.099001'; # real numerical version =2E..which has been a working work-around so far. |