On Sun, Aug 1, 2010 at 19:02, Ben Morrow <ben@morrow.me.uk> wrote: > The reason is so that interpolation under different flags works > properly. Currently, if I have > > my $rx = qr/f./s; > > is stringifies to (?s-xim:f.), which means that when I interpolate it > into a pattern with different flags > > "AFx" =~ /a$rx/i; Except in that case we could detect it because the // operator has access to the original regex object through $rx. But the equivalent example where $rx has been stringified somewhere along the way would be applicable.Thread Previous | Thread Next