Got It!
we can do it with "eval" as follows: $subst = "s/${rule}/${action}/"; eval ($subst) or die;
In reply to Re: Using scalar variables as substitution regular expression
by addy7de
in thread Using scalar variables as substitution regular expression
by addy7de
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |