On Sat Sep 28 17:30:30 2013, g.grigelionis@gmail.com wrote:
Show quoted text> $VERSION = substr q$Revision: 1.05 $, 10;
>
> yields version number with a trailing space that current versions of
> cpan shell warn for
>
> Version string '1.05 ' contains invalid data; ignoring: ' ' at
> /Library/Perl/5.12/ExtUtils/MM_Unix.pm line 2707.
>
> A better solution is
>
> $VERSION = (qw$Revision: 1.05 $)[-1];
That code was originally there to support CVS and use its automatically managed Revision number bumping for each commit. Now that the project is hosted at github, I'm going to manually manage it. I'll be making this change:
-$VERSION = substr q$Revision: 1.05 $, 10;
+$VERSION = '1.06';
+$VERSION = eval $VERSION;
BTW, is there a tool to bump $VERSION in all Perl files? I would like to bump to say '1.06_01' while its in development and then bump to '1.06' for the release and then go to '1.06_01'.