in reply to Re^5: Feature Idea: qr//e
in thread Feature Idea: qr//e (updated with solutions)


You're quite right: not a good tweak when it's not 100% applicable.

Of course, you could still write:

my $regex = qre{ join '|', qw/foo bar/ }m =>;
but that's probably just adding insult to injury.

And, yes, I was indeed caught out by this because I no longer even think about the m or s modifiers.
Especially now that I can add a standard:

use re '/xms';
at the top of every Perl file. ;-)