in reply to Bad name after xxxx'

I have read that perl used to allow pkg'$var and this is still supported

"'" is allowed as an alternate to "::", so $pkg::var could be (very unwisely) written as $pkg'var. Writing pkg'$var could definitely result in the error you get. But I don't see that in the code, so why do you bring it up?

The hashed codes are japanese characters.

No, there are no Japanese characters in the iso-8859-1 character set. You are not giving Japanese characters to perl. Perhaps you meant to include "use utf8;" to indicate your source is encoded using UTF-8 rather than iso-8859-1?

Replies are listed 'Best First'.
Re^2: Bad name after xxxx'
by KyussRyn (Acolyte) on Jan 25, 2011 at 05:46 UTC
    I tried using the "use utf8;" line and it created a recursion error. As mentioned above I am using EPiC for eclipse and have the pages encoded to UTF-8 through the interface. Also the output to the HTML pages that the script is creating is handling the characters fine.

    If you still think that it is a UTF-8 error, I am assuming I would need to copy all of my code out to say notepad, use the UTF-8 line, and then paste back in. If there is an easier way would be happy to hear as it will save me a few files of code to not do this for.

    As for the $pkg'var comment, I just wanted to ensure readers that I was aware of this and that this wasn't the cause.