in reply to Re: Any caveats in using unpack to right-trim? Why isn't it advertised more?
in thread Any caveats in using unpack to right-trim? Why isn't it advertised more?
D:\>perl -wle "print '#' . unpack('A*', 'abc ') . '#';" #abc# D:\>perl -wle "print '#' . unpack('A*', 'abc d') . '#';" #abc d#
|
|---|