Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^6: Feature Idea: qr//e

by TheDamian (Priest)
on Jan 20, 2017 at 19:54 UTC ( #1180054=note: print w/replies, xml ) Need Help??


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

++choroba

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. ;-)

Damian

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1180054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2019-10-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?