in reply to adding 1 to a char of 1
use strict; my $oldfile = '0001'; my $newfile = sprintf("%4.4d", $oldfile + 1); print "New filename = $newfile\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding 1 to a char of 1
by Anonymous Monk on Jun 20, 2006 at 17:24 UTC |