Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Regex stored in a scalar

by kroach (Pilgrim)
on Aug 22, 2015 at 10:49 UTC ( #1139498=note: print w/replies, xml ) Need Help??


in reply to Re: Regex stored in a scalar
in thread Regex stored in a scalar

It would be better to quote the pattern with qr// rather than using /o. Like this:
$regex = qr/$regex/

Replies are listed 'Best First'.
Re^3: Regex stored in a scalar
by Laurent_R (Canon) on Aug 22, 2015 at 11:35 UTC
    Yes, you're probably right, ++, this was just a quick additional note for speed, not much to to with the OP question.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-10-24 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (246 votes). Check out past polls.

    Notices?