in reply to TRing part of a line

This snippet works:

$_ = "abcdef"; substr($_,0,3) =~ tr/a-z/A-Z/; print;

output:

ABCdef

update: using $_ instead of $a

Replies are listed 'Best First'.
Re: Re: TRing part of a line
by curtisb (Monk) on Sep 26, 2002 at 18:55 UTC
    I need to control where the period will show. Because the text is varied in length from one line to the next.
    Bobby