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

Re: Benchmarking Pure Perl Trim Functions.

Thread Previous | Thread Next
From:
Karl Williamson
Date:
June 4, 2021 14:38
Subject:
Re: Benchmarking Pure Perl Trim Functions.
Message ID:
32176e91-814a-e241-adba-1acfed59f26c@khwilliamson.com
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

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