If you want to add a $VERSION variable to your script or package you could use something like this:
When you check this out with RCS, the string between q$ $ will get updated with the RCS version, and the regexp will update your $VERSION variable.use vars qw($VERSION); $VERSION = sprintf "%d.%03d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/;
HTH
--
hiseldl
What time is it? It's Camel Time!
In reply to Re: script heading
by hiseldl
in thread script heading
by naChoZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |