in reply to TRing part of a line

substr( $_, 0, index( $_, '.')) =~ tr/a-z/A-Z/; or better,
substr $_, 0, index( $_, '.'), uc( substr $_, 0, index( $_, '.'));

After Compline,
Zaxo