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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
Graham Knop
Date:
February 24, 2022 11:01
Subject:
Re: trim vs trimmed revisited
Message ID:
CAM=m89HqPO2_25dX60W06p=cVP66Qn3-=6YZV5aTSHNzX1LJdg@mail.gmail.com
On Thu, Feb 24, 2022 at 11:28 AM demerphq <demerphq@gmail.com> 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.

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