in reply to zapping gremlins
Won't this fix your problem?
Given, you might still want the curly quotes replaced with flat quotes, but if your object is just to make the text display properly, this should do the job.use HTML::Entities; encode_entities($mystr);
In Section
Seekers of Perl Wisdom