in reply to Variables in Regular Expressions?

try :

$c =~ tr/$a/$b/;
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/