Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^6: Feature Idea: qr//e

by TheDamian (Vicar)
on Jan 20, 2017 at 19:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2025-05-22 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.