in reply to (Ovid) Re: a simple substitution question
in thread a simple substitution question

D'oh! Actually the author was even more clever and figured out how to leave 'US' alone. Your solution breaks under strict though. Try this:
my %tr = qw(U T u t); s/\b([Uu])s\b/$tr{$1}hem/g;
BTW I would wonder about the author's solution working with Unicode...