Transliteration doesn't use character classes. You don't need [ and ], unless you actually intend to also transliterate those square bracket characters. What's needed is:
$line1 =~ tr/A-Za-z/a-zA-Z/
...assuming you're not dealing with some funky character set.
Dave
In reply to Re^4: uppercase/lowercase in a single expression
by davido
in thread uppercase/lowercase in a single expression
by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |