while (<IN>) { chomp; my $padded; $padded .= sprintf("%03d", $_) for split /\./; }
Update: I like Aristotle's solution better. Use that one, not mine. TIMTOWTDI! :-)
-- Mike
--
just,my${.02}
In reply to Re: simple padding of IP address
by thelenm
in thread simple padding of IP address
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |