in reply to
Variables in Regular Expressions?
Your code has a transposed substitution operator (should be =~ not ~=). I don't recall 'tr' options off the top of my head, but a substitution like this will work fine:
$c =~ s/$a/$b/;
Comment on
Re: Variables in Regular Expressions?
In Section
Seekers of Perl Wisdom