If you live in a non-unicode world, then tr///was designed for this:
$s = 'This is A mIxEd-Case STRING';; $s =~ tr[A-Za-z][a-zA-Z];; print $s;; tHIS IS a MiXeD-cASE string
In reply to Re: Reversing string case
by BrowserUk
in thread Reversing string case
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |