Re: trailing spaces
[email protected] (Nicholas Clark) Wed, 20 Aug 2003 19:47:57 +0100
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 20, 2003 at 02:07:59PM +0000, Colin Foster wrote: > Hi, > > Is there an easy way to remove the trailing > spaces in the string "TRAILING SPACES " You seem to be missing a closing quote on that. Probably the easiest way is with a regular expression. If your string is in $a, then $a =~ s/ +$//; will strip spaces from the end. Nicholas Clark