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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
demerphq
Date:
February 24, 2022 11:14
Subject:
Re: trim vs trimmed revisited
Message ID:
CANgJU+WJbUjNW0pRB0oYNbj5RzTDZa6=1cwHMsJJv0wy1nzYYw@mail.gmail.com
On Thu, 24 Feb 2022 at 12:01, Graham Knop <haarg@haarg.org> wrote:

> 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.
>

I have no problem with that.

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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