Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do i interpolate a variable in a regular expression?

by reneeb (Chaplain)
on Sep 27, 2006 at 06:54 UTC ( #575095=note: print w/replies, xml ) Need Help??


in reply to How do i interpolate a variable in a regular expression?

You should use the qr-operator:

my %config = ( URI => { regex => qr/^$method\ssip:/, sub => \&request_line }, )


see perldoc perlop

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575095]
help
Chatterbox?
[marto]: even the YouTubes?

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-06-27 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (610 votes). Check out past polls.