Bastian Angerstein wrote:
Hello,
I have some Numbers 1 2 3 40 51 and I want them to be in the format 001 002 003 ... 040 ... 051 ...
What is the fastest way to do this??
use sprintf.... $num = 1; $zero_num = sprintf("%03d", $num);
#$zero_num will now have 001
perldoc -f sprintf
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>