in reply to sprintf values
Note that converting to string will give the expected results.
my $tmp = sprintf("%010s", $num); [download]
... 895 0000000895 894 0000000894 ... [download]
Stefan