Adding CVS version information to a Perl script

From V.S.V., Inc.
Jump to: navigation, search

At the top of your script add a line like:

my $cvs_version = '$Revision: $';

After you commit this change to CVS, future updates will contain an expanded version of the line:

my $cvs_version = '$Revision: 1.17 $';

You can then use $cvs_version however you like in the rest of your script and it will always be kept current.

Main Page