develooper Front page | perl.perl5.porters | Postings from February 2022

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
Karl Williamson
Date:
February 24, 2022 12:57
Subject:
Re: trim vs trimmed revisited
Message ID:
77def7b3-dcb1-825d-605e-b81e096d7aff@khwilliamson.com
On 2/24/22 04:40, Paul "LeoNerd" Evans wrote:
> On Thu, 24 Feb 2022 12:01:24 +0100
> Graham Knop <haarg@haarg.org> wrote:
> 
>> Shouldn't it be possible for perl to optimize
>>
>> $string = trim($string);
>>
>> internally to operate in place? This would offer the benefits of in
>> place operation, with the interface most people seem to prefer.
> 
> Not only is it *possible* but my original branch actually implemented
> this all those months ago. ;)
> 

The current pull request is taken almost entirely from that branch, and 
retains the in-place capability

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About