in reply to
Variables in Regular Expressions?
try :
$c =~ tr/$a/$b/;
[download]
Update:
below posts answer better, use
s///
instead
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady
|
http://chady.net/
Comment on
Re: Variables in Regular Expressions?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom