Re: version-0.77 and You
Gisle Aas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.perl5.porters,gmane.comp.lang.perl.modules.module-build |
|---|---|
| Message-ID | <[email protected]> |
On Jul 15, 2009, at 22:49 , John Peacock wrote:
> Gisle Aas wrote:
>> I would suggest that you bump the version number of version to 1.00
>> so that becomes the recommended minimal number instead of an
>> arbitrary number like 0.77; making the recommended invocation:
>> use version 1.00; $our $VERSION = qw("v1.2.3");
>
> You do know that the above doesn't actually do anything? Or did you
> mean qv() instead of qw()?
Yeah. I did not mean to have that $ in front of our either :)
>
>> This still confuses me as I think that:
>> use version 1.00;
>> ought to be handy way to declare your own $VERSION, not about
>> requesting a specific version of version.
>
> That was [briefly] considered but was judged to be "too magical"
> because
>
> 1) There is no package global $VERSION visible in the source;
>
> 2) Module::Build and EU::MM would have to be upgraded in order to
> understand that they can't just scan the source file any more to get
> the $VERSION.
Seems like a good reason now to do this then. Perhaps it's better to
write:
our $VERSION = version->declare("v1.2.3"); use version 1.00;
then. At least then you manage to present the version number you
really care about first.
--Gisle