in reply to most terse regex match count

map gets abused so often, it can take another hit:
if ( 2 == map $_, $outs =~ m|A|gs )
Or maybe it's no abuse. Could be a plain map $_, construct gets optimized by perl somehow?


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^2: most terse regex match count
by hippo (Archbishop) on May 17, 2019 at 09:52 UTC