if ($string =~ /[A-Z]+/){ $string = lc $string; }else{ $string = uc $string; } [download]
In reply to Re^2: Reversing string case by perlpal in thread Reversing string case by perlpal