in reply to Re: Force interpolation on singel quoted strings
in thread Force interpolation on singel quoted strings
The way to go is not to force interpolation, but to go the other way around. Do something like:
Or (probably more convenient), to just have $printtag and surround that with \Q and \E when putting it in the regex.my $printtag = "/* <sometag */"; my $matchtag = quotemeta $printtag;
Abigail
|
|---|