Keep It Simple, Stupid | |
PerlMonks |
Re: Strip leading and trailing blanksby arthas (Hermit) |
on Jul 29, 2003 at 22:45 UTC ( [id://279021]=note: print w/replies, xml ) | Need Help?? |
Node How do I remove whitespace at the beginning or end of my string? is the Q&A's section answer to your problem. You'll find several ways to do it there. If you're interested in an optimized version for trailing spaces (with discussion), try node Removing Trailing Whitespace: Multiple ways.. Michele.
In Section
Seekers of Perl Wisdom
|
|