in reply to Troubleshooting a character reference converter script

How does it fail to work for you?

  • Comment on Re: Troubleshooting a character reference converter script

Replies are listed 'Best First'.
Re^2: Troubleshooting a character reference converter script
by elef (Friar) on Oct 27, 2010 at 18:11 UTC
    I was about to write "completely", but I did a bit more testing before I posted and it turns out that it does work on the file's very first line. It converts all the character references that are on the first line, but the rest of the file stays unchanged. If I insert a blank line before the first line, the whole file remains unchanged.
    I added an s/a/b/g; line inside the while loop right after my $chr; as a test, and that replacement works fine on all lines of the file. Odd.

    I'm on Windows XP with Activeperl 5.10 by the way.