On Fri, Aug 14, 2015 at 6:48 AM, Philip Hazelden
<philip.hazel...@gmail.com> 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 behavior clearly documented at
<http://doc.perl6.org/language/operators>.)

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 seems at first glance that the
'substr-rw' method should be removed.

Thanks, Philip.

Best regards,

-Tom

Reply via email to