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 Ovid
- Re: [PATCH] Add .trim method Carl Mäsak
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Larry Wall
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Jonathan Worthington
- Re: [PATCH] Add .trim method Carl Mäsak
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Andy Lester
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method jesse
- Re: [PATCH] Add .trim method Ovid
- 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
- Re: [PATCH] Add .trim method Geoffrey Broadwell
- Re: [PATCH] Add .trim method Larry Wall
- Re: [PATCH] Add .trim method Ovid
- Re: [PATCH] Add .trim method Jonathan Scott Duff