in reply to Remove zero padding from excel mangled Ip addresses
while (<>) { my @csv = split /,/; s/\b0+(?=\d)//g for @csv[0,2]; print join(',', @csv), "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove zero padding from excel mangled Ip addresses
by Anonymous Monk on Apr 03, 2012 at 13:48 UTC |