in reply to simple padding of IP address
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}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: simple padding of IP address
by Aristotle (Chancellor) on Jul 25, 2002 at 21:15 UTC |