in reply to Re^3: How to use a variable in tr///
in thread How to use a variable in tr///
Update:
Though for character replacement, I'd build the regex using a character class rather than alternation:
my $table_re = sprintf '[%s]', join '', map quotemeta, keys %table;
|
|---|