Re: [PATCH] Add .trim method
[email protected] (Larry Wall) Mon, 12 Jan 2009 08:31:26 -0800
| Newsgroups | perl.perl6.language,perl.perl6.internals |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 12, 2009 at 05:04:50AM -0800, Ovid wrote: : ...the trivial $string.trim and trim($string) case. Hmm, I'd think .trim should work like .chomp, and return the trimmed string without changing the original. You'd use $str.=trim to do it in place. Can't say I really like the negated options though. They smell funny. Larry