in reply to pack auto-chomps/chops?
pack:
A: A text (ASCII) string, will be space padded
Emphasis mine. If spaces are added by pack, they'll be removed by unpack. I guess it means \s when it says space. Fix:
sub by_ip { return map substr($_, 4), sort map inet_aton( (split /\s/, $_, 2)[0] ) . $_, @_ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pack auto-chomps/chops?
by bv (Friar) on Oct 07, 2009 at 19:14 UTC | |
by ikegami (Patriarch) on Oct 07, 2009 at 19:18 UTC | |
by bv (Friar) on Oct 07, 2009 at 20:04 UTC |