Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Is there any way to put regex modifiers into a variable?

by hilitai (Monk)
on Mar 11, 2018 at 20:23 UTC ( [id://1210683]=note: print w/replies, xml ) Need Help??


in reply to Re: Is there any way to put regex modifiers into a variable?
in thread Is there any way to put regex modifiers into a variable?

Yes! Thank you! That is the slap upside the head that I needed.

With regards to the /o modifier, see the Perlop man page, Regexp Quote-Like Operators.

Replies are listed 'Best First'.
Re^3: Is there any way to put regex modifiers into a variable?
by haukex (Archbishop) on Mar 12, 2018 at 12:36 UTC
    the /o modifier

    Although I'm having trouble finding it at the moment, I think there was some recent discussion that /o is often not what you want. All I found so far is /o is dead, long live qr//!, although that's not recent. There's the FAQ What is /o really for?. You could perhaps look into qr//.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found