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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
Graham Knop
February 24, 2022 11:01
Re: trim vs trimmed revisited
Message ID:
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.

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