Keep It Simple, Stupid | |
PerlMonks |
Re: Removing Trailing Whitespace: Multiple ways.by no_slogan (Deacon) |
on May 11, 2001 at 22:43 UTC ( [id://79809]=note: print w/replies, xml ) | Need Help?? |
Hey, good idea.
The unpack solution assumes the length of the string is 8.
It'll get a bit slower if it's generalized.
Update: Strike that. unpack "A*" runs faster than unpack "A8" on my machine. Anyone have an idea why that might be?
In Section
Meditations
|
|