Subject: | $Revision: $ parsing |
The following line:
'$Revision: 1.15 $' =~ m/(\d+)\.(\d+)(\.\d+)?/ && ( $VERSION = "$1.$2$3");
$3 is not defined and will produced a warning if warnings are enabled.
I usually do something like this:
'$Revision: 1.15 $' =~ m{ [\$] Revision: \s+ (\S+) }xms && ( $VERSION
= $1 );
John