Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-09-09 Thread Tom Browder
Thanks, Aristotle. -Tom

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-09-09 Thread Aristotle Pagaltzis
* Tom Browder [2015-08-14 14:10]: > On Fri, Aug 14, 2015 at 6:48 AM, Philip Hazelden > wrote: > > Correct me if I'm wrong, can't you do > > > > $s .= trim > > Um, I saw that usage in an earlier thread but didn't try it because it > didn't "look right" given my experience with the ".=" operator as

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
On Aug 14, 2015 8:46 AM, "Brandon Allbery" wrote: > On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder wrote: ... >> now). Note that the same behavior applies to the 'substr' string >> method so that begs the question of why is the 'substr-rw' method >> justified and 'trim-rw' not? It seems at first

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Brandon Allbery
On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder wrote: > But I've tried it and it works (but the syntax still bothers me for > now). Note that the same behavior applies to the 'substr' string > method so that begs the question of why is the 'substr-rw' method > justified and 'trim-rw' not? It seem

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
On Fri, Aug 14, 2015 at 6:48 AM, Philip Hazelden wrote: > Correct me if I'm wrong, can't you do > > $s .= trim Um, I saw that usage in an earlier thread but didn't try it because it didn't "look right" given my experience with the ".=" operator as I'm used to it. (Note I have now seen that behavi

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Philip Hazelden
Correct me if I'm wrong, can't you do $s .= trim ? On 12:45pm, Fri, 14 Aug 2015 Tom Browder wrote: > In an earlier thread of mine on this list seeking help, Liz mentioned > one string method that has now been dcoumented, 'substr-rw', which > allows in-place modification of a string variable. >

Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
In an earlier thread of mine on this list seeking help, Liz mentioned one string method that has now been dcoumented, 'substr-rw', which allows in-place modification of a string variable. In my journey with Perl 6 I have enjoyed the string 'trim' method so I can do this: my $s = ' blah '; $