in reply to
not able to replace the element in the middle of the string
First you should try to run your code with "use strict;".
Comment on
Re: not able to replace the element in the middle of the string
In Section
Seekers of Perl Wisdom