http://www.perlmonks.org?node_id=764600


in reply to replace string

Do you want to replace the actual “”’characters or their HTML-entities?

One possible reason for the failure could be that you are trying to replace the actual characters but your are looking for them by using their HTML-entities names; or the character codes you are checking for are not the same as those used in your file (different codepage).

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James