sandy1028 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have to read the file and if I find the characters like &ldquo,&rdquo,&rsquo I have to replace it with some characters.
$data =~ s/“/“/g; # change the lines $data =~ s/”/”/gi; $data =~ s/’/’/gi;
But this is not replaced in the file when it occurs. How to do this