Perhaps you want the /s flag on your tr/// to squash repeated transliterated characters? See perldoc perlop for more details.
Update: And perhaps tr/A-z/_/cs might accomplish what you're trying to do a bit more readably (not exactly the same as the original but probably close enough for this application).
In reply to Re: All special character substitution and/or drop from column names.
by Fletch
in thread All special character substitution and/or drop from column names.
by paulu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |