in reply to Any caveats in using unpack to right-trim? Why isn't it advertised more?
Today I learned ...
Using unpack since perl-4.017, I never before realized that unpack "A*" also removed trailing newlines!