On Mon, Jan 12, 2009 at 07:01:25AM -0800, Ovid wrote: > > > > I could optionally make the following work: > > > > > > > > $string.trim(:leading<0>); > > > > $string.trim(:trailing<0>); > > Alternatively, those could be ltrim() and rtrim(). 'left' and 'right' are probably not the right names for functions which trim leading and/or trailing space, since their meanings get somewhat ambiguous if a language renders right-to-left instead of left-to-right or vice-versa -jesse
- Re: [PATCH] Add .trim method Jonathan Scott Duff
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Andy Lester
- Re: [PATCH] Add .trim method Moritz Lenz
- Re: [PATCH] Add .trim method Larry Wall
- Trimming; left or start? (was: Re: ... Timothy S. Nelson
- Re: [PATCH] Add .trim method Mark J. Reed
- Re: [PATCH] Add .trim method Brandon S. Allbery KF8NH
- Re: [PATCH] Add .trim method Dave Whipp
- Re: [PATCH] Add .trim method jesse
- Re: [PATCH] Add .trim method Gianni Ceccarelli
- Re: [PATCH] Add .trim method jason switzer
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method jason switzer