in reply to Re^2: issue with sprintf..in thread issue with sprintf..
Or like this:
$Val2 = '0' x (11-length $Val2) . $Val2 if length $Val2 < 11; [download]
or this