This is a Perl version of the C macro PERL_BCDVERSION, so the value
returned can be used as the file names in parts/base and parts/todo,
and is easy to compare.
(cherry picked from commit
7be255fab4621aecfe8192ea2fa2d4aa842067f4)
Signed-off-by: Nicolas R <atoomic@cpan.org>
die "Invalid version number format: '$ver'$mesg\n";
}
+sub int_parse_version
+{
+ # Returns integer 7 digit human-readable version, suitable for use in file
+ # names in parts/todo parts/base.
+ return 0 + join "", map { sprintf("%03d", $_) } parse_version(shift);
}