![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Any caveats in using unpack to right-trim? Why isn't it advertised more?by Anonymous Monk |
on Feb 08, 2025 at 13:59 UTC ( [id://11163953]=note: print w/replies, xml ) | Need Help?? |
(Semi-)answering self: with s/\s+$// for "usual", it's now slightly faster than "better", -- my bad, so then no need to invent "better", I guess some optimizations kick in. But "unpack" is still twice as fast, and questions in the title remain.
In Section
Seekers of Perl Wisdom
|
|