in reply to Help with Numbers..Please

Hi, If you want the zeros, you should pad these on when they are needed for display. When using the number, it will be simply a number. I have a requirement to do this on my project. I use this function that I wrote:
sub zeroPad () { my $number = $_[0]; my $charLength = $_[1]; if ($charLength > 10000) { return; } # Sanity Check my $tmp; # Front pad with zeros $tmp = $number; while ( length ($tmp) < $charLength ) { $tmp = "0" . $tmp; } return $tmp; } # end zeroPad