On Sun, Aug 1, 2010 at 19:44, karl williamson <public@khwilliamson.com> wrote: > I still don't understand. I had considered interpolation, and it still > seems to me that the absence of a modifier means use the underlying default > for the duration of that interpolation, no matter what the outer regex says. > I don't see a flaw in that thinking. It's not an issue if you have a regexp object. But consider this: $ perl -E 'my $s = "foo"; my $o = qr/foo/; my $so = "$o"; my $n = qr/ $s ${o} blah ${so} /i; say $n' (?i-xsm: foo (?-xism:foo) blah (?-xism:foo) ) Even if we didn't dump the default modifiers we could detect the "$o" case since it's a regexp object, but we wouldn't detect "$so" since it's a stringified "$o".Thread Previous | Thread Next