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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
Paul "LeoNerd" Evans
February 24, 2022 11:40
Re: trim vs trimmed revisited
Message ID:
On Thu, 24 Feb 2022 12:01:24 +0100
Graham Knop <> 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      |  |

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About