in reply to transliterate a sub-string
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: transliterate a sub-string
by grondilu (Friar) on Jan 16, 2013 at 07:18 UTC | |
by Anonymous Monk on Jan 16, 2013 at 09:05 UTC |