in reply to TRing part of a line

Here it goes again:

$_ ="abc.def"; s/(.*?\.)/\U$1/; print;

output:

ABC.def

note: tr doesn't work well with international character sets - use \U or uc() instead.