This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In Porting/cmpVERSION.pl, increment $count in one place, unconditionally.
authorNicholas Clark <nick@ccl4.org>
Sun, 3 Jun 2012 13:57:20 +0000 (15:57 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 18 Jun 2012 12:15:41 +0000 (14:15 +0200)
commit63ffcb73631fc535f0953ece868a000c7ee9e9c0
treefaf16a4b25d4ce78de3e0be6eeaf515df4d50992
parent31c2fa87f75a985ad4493f8a830a704fa7a4f6c4
In Porting/cmpVERSION.pl, increment $count in one place, unconditionally.

Previously it was only incremented if it was being used (as part of generating
TAP output). However, this was done as ++$count, necessitating using a printf
statement. By moving the increment to one place we can use print instead,
which is simpler, and avoid the risk of forgetting to increment $count if we
add a new block for different test output.
Porting/cmpVERSION.pl