Subject: | FAQ: How do I keep my $VERSION up to date without resetting it manually? |
The EU:MM::FAQ (for version 6.32) says
How do I keep my $VERSION up to date without resetting it manually?
...
For SVN ...
$VERSION = (q$Revision$) =~ /(\d+)/g;
I believe that this always gives $VERSION = 1, and should read:
($VERSION) = q$Revision$ =~ /(\d+)/;
I.e. give the match list context so that it returns the match, rather
than the number of matches. Additionally I think the 'g' modifier to
the match is redundant.
Regards,
Rob.