in reply to Change a String's Element

Normally I would hesitate to give this adivce becuase I do not like to seem snarky, but with this and your previous question I am sensing some very basic confusion about Perl and programming in general. I think a lot of benefit would be gained by some careful reading of an introductory Perl book or on line documents,

"Learning Perl" in particular comes to mind. and I am certain the other monks have wonderful lists of resources.

I hope this is helpful and wish you well in you coding

Misha/Michael - Russian student, grognard, bemused observer of humanity and self professed programmer with delusions of relevance