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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
Darren Duncan
Date:
February 24, 2022 11:28
Subject:
Re: trim vs trimmed revisited
Message ID:
585104fe-3b75-e5b2-f358-b3f86d8f0b43@darrenduncan.net
On 2022-02-24 3:14 a.m., demerphq wrote:
> On Thu, 24 Feb 2022 at 12:01, Graham Knop wrote:
> 
>     On Thu, Feb 24, 2022 at 11:28 AM demerphq wrote:
>      >
>      > I spent a lot of time working on routines like trim and friends for
>     generating Bookings website. In place modification can be a *huge* win.
>      >
> 
>     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.
> 
> I have no problem with that.

I agree that this kind of solution would be ideal. -- Darren Duncan

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