in reply to Re: String character replacement based on position
in thread String character replacement based on position
Or, using pos() and \G
$ perl -le' $_ = q/atcgcgtacatcgatac/; print; pos = 8; s/\G(.)/\u$1/; print; ' atcgcgtacatcgatac atcgcgtaCatcgatac
|
|---|