Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Bad name after xxxx'

by ikegami (Patriarch)
on Jan 25, 2011 at 04:54 UTC ( [id://884053]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://884053]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found