in reply to (Ovid) Re: front-pad a number with zero's
in thread front-pad a number with zero's

A regex is overkill here. (If I'm saying it, trust me...) If you're against using sprintf(), just do the math:
sub pad { my ($num, $len) = @_; return '0' x ($len - length $num) . $num; }

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;