http://qs1969.pair.com?node_id=296701


in reply to Quick regexp question

Hi, your code is almost perfect, you've just put a '/' at the end of your pattern :
$a =~ s{\b([A-Z]{4,})\b}{ucfirst(lc($1))}eg;
will work

Arnaud