http://www.perlmonks.org?node_id=527507


in reply to Re: when $$s =~ m/\G.../gc is too verbose
in thread when $$s =~ m/\G.../gc is too verbose

Without going to the extremeties of toke.c (the Perl tokenizer), things are usally more complicated than mere pattern matching. One may have to test whatever flags. Otherwise, indeed one could factorize one way or another.

-- stefp