Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Do you know where your variables are?
 
PerlMonks  

Re^4: qr// and user provided regex patterns...

by JadeNB (Chaplain)
on Aug 04, 2009 at 13:49 UTC ( #785780=note: print w/ replies, xml ) Need Help??


in reply to Re^3: qr// and user provided regex patterns...
in thread qr// and user provided regex patterns...

You say you have problems doing substitutions, but you didn't show us your attempt (despite your claim). You should have no problems using a qr// pattern in a substitution.
I think that misterMatt's problem was that he was trying to stuff a substitution into a qr//, like:
my $substitution = 's/out/in/'; my $pattern = qr/$substitution/;
which, naturally, doesn't work (well, doesn't cause a substitution, anyway).


Comment on Re^4: qr// and user provided regex patterns...
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-04-18 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (463 votes), past polls