sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:
Suppose $method =INVITE.
Suggest me some code.
It doesn't interpolate the variable $method?my %config = ( URI => { regex => '^$method\ssip:', sub => \&request_line }, )
Suggest me some code.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do i interpolate a variable in a regular expression?
by davido (Cardinal) on Sep 27, 2006 at 06:52 UTC | |
by sanjay nayak (Sexton) on Sep 27, 2006 at 07:04 UTC | |
Re: How do i interpolate a variable in a regular expression?
by reneeb (Chaplain) on Sep 27, 2006 at 06:54 UTC | |
Re: How do i interpolate a variable in a regular expression?
by chargrill (Parson) on Sep 27, 2006 at 06:54 UTC |
Back to
Seekers of Perl Wisdom