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] ) . $_, @_ }
In reply to Re: pack auto-chomps/chops?
by ikegami
in thread pack auto-chomps/chops?
by bv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |