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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
"G.W. Haywood" via perl5-porters
Date:
February 24, 2022 12:22
Subject:
Re: trim vs trimmed revisited
Message ID:
7e63ac19-4e14-87b9-39ee-62ce78b675d7@jubileegroup.co.uk
Hi there,

On Thu, 24 Feb 2022, demerphq wrote:
> 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.

+1

-- 

73,
Ged.

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