in reply to Changing case inside substitution
my $str = 'Abc Abc'; $str =~ s/(\w+)/lc($1)/ge; [download]
Hope this helps, -gjb-