Help for this page
use strict; use warnings; ... my $newName = sprintf ("%03s%06d%02d", $prefix, $midCount, $suffix); print "$oldName -> $newName\n" }
__DATA__ 22200010001 ... 22200010102 -> 22200000202 22200010103 -> 22200000203 22200010201 -> 22200000301