in reply to Removing Commas and Period in Amount Field
my $checknum = "0000000" . substr($source, 18, 12); [download]
# left-pad with zeros, total length of 21 my $checknum = sprintf("%021d", $source); [download]