As you don't show how you have combined the two it is difficult to judge. This seems fairly straightforward and not too clumsy. I'm not sure how that might be condensed further.
$ perl -E ' > $str = q{ABCDEFGHIJK}; > substr( $str, 3, 3 ) =~ tr{A-Z}{a-z}; > say $str;' ABCdefGHIJK
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: transliterate a sub-string
by johngg
in thread transliterate a sub-string
by onlyIDleft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |