http://qs321.pair.com?node_id=335395


in reply to Implement uclast with a regex

yet another way, which should be quickier than the double reverse:
my $string = "ACta"; $string = lc(substr($string, 0, length($string)-1)) . uc(substr($string, -1, 1));
cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris