|Do you know where your variables are?|
How to increment subversion number inside Perl programby bulrush (Beadle)
|on Jul 17, 2014 at 13:39 UTC||Need Help??|
bulrush has asked for the
wisdom of the Perl Monks concerning the following question:
The answer to this could be a 'perl -e' program, or csh or bash solution.
In my Perl program I have the version and subversion numbers like this:
$SUBVER=2; # 2 is current subversion $VER="1.0.".sprintf("%03d",$SUBVER);I have a csh script which copies my test script to my production directory each time I update it. How can I get my 'update' script to increase the $SUBVER number in my perl code each time my 'update' csh script runs?
Perl 5.8.8 on Redhat Linux RHEL 5.5.56 (64-bit)