⭐ in reply to How do I remove whitespace at the beginning or end of my string?
Than the one-liner :$string=~s/^\s+//; $string=~s/\s+$//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I remove whitespace at the beginning or end of my string?
by Abigail-II (Bishop) on Jul 14, 2003 at 15:08 UTC |