http://qs321.pair.com?node_id=575091

sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:

Suppose $method =INVITE.
my %config = ( URI => { regex => '^$method\ssip:', sub => \&request_line }, )
It doesn't interpolate the variable $method?
Suggest me some code.