develooper Front page | perl.perl5.porters | Postings from June 2021

Re: Benchmarking Pure Perl Trim Functions.

Thread Previous | Thread Next
From:
demerphq
Date:
June 4, 2021 14:52
Subject:
Re: Benchmarking Pure Perl Trim Functions.
Message ID:
CANgJU+WSoe4RGk_jUmz47romLp5On9_RCdW6vOjmC1gumCpKaw@mail.gmail.com
On Fri, 4 Jun 2021 at 16:38, Karl Williamson <public@khwilliamson.com>
wrote:

> On 6/4/21 7:29 AM, demerphq wrote:
> >
> > s/[\s+]\z//
> >
>
> I think you meant [\s]+
> and that is optimized into \s+, so the engine never has to worry about this
>

Yes, good catch.

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