try :
$c =~ tr/$a/$b/; [download]
In reply to Re: Variables in Regular Expressions? by Chady in thread Variables in Regular Expressions? by pchou