Making the version number reflect the cvs version, to allow for easier

debugging.
If we can ask people what version of a module they are running it makes
error checking easier
This commit is contained in:
rangi 2004-12-15 06:08:06 +00:00
parent e54459b763
commit 9cd423cbb4
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ use C4::Date;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
$VERSION = 0.02;
$VERSION = do { my @v = '$Revision$' =~ /\d+/g;
shift(@v) . "." . join("_", map {sprintf "%03d", $_ } @v); };
=head1 NAME