$ perl -le'$_ = "MiXeD CaSe ExAmPlE"; print; s/([[:alpha:]])/ $1 eq "\ +U$1" ? "\L$1" : "\U$1" /eg; print' MiXeD CaSe ExAmPlE mIxEd cAsE eXaMpLe
In reply to Re: Reversing string case
by jwkrahn
in thread Reversing string case
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |