It just struck me that you can avoid having to use the quotemeta function by using metacharacter form:
eval "\$ex =~ tr[\Q$ctl\E][]cd;";
In reply to Re^3: Scurbbing a string
by BrowserUk
in thread Scrubbing a string
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |