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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
February 24, 2022 11:40
Subject:
Re: trim vs trimmed revisited
Message ID:
20220224114034.2176f478@shy.leonerd.org.uk
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. ;)

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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