Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How do I quickly strip blank space from the beginning/end of a string?by ikegami (Patriarch) |
on Jul 21, 2009 at 21:01 UTC ( [id://782078]=note: print w/replies, xml ) | Need Help?? |
Your solutions are very broken.
There's also a issue with your benchmark. Benchmarking code that removes trailing spaces when your input never has trailing spaces is odd. Include a case where the input has trailing spaces!
In Section
Seekers of Perl Wisdom
|
|