in reply to Are perlfaq6 and perlop correct about "/o" modifier?

See the depths of Reusing a complex regexp in multiple spots, escaping the regexp for discussion of some unexpected side-effects of /o.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Are perlfaq6 and perlop correct about "/o" modifier?
by Anonymous Monk on May 09, 2026 at 15:49 UTC

    (Oops, shouldn't have used "/c" in benchmark, and should have noticed unrealistic results for such a long input. I'm sorry. Copied "/cg" and "\G" from RL code, thought maybe it's relevant for how "/o" behaves. The premise in the title is still the same.)

    Thanks for the link, that's scary. Perhaps I'd better not "split" a regex into smaller chunks, let it stay long.