in reply to Re^2: Reversing string casein thread Reversing string case
my $reversed = $str =~ /\p{Lu}/ ? lc $str : uc $str; # Or my ($reversed) = map {/\p{Lu}/ ? lc : uc} $str; [download]