Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Writing a better Modern::Perl

by moritz (Cardinal)
on Oct 07, 2010 at 18:03 UTC ( #864053=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Writing a better Modern::Perl
in thread Writing a better Modern::Perl

but, I don't think you can logically argue that the Perl source shouldn't be utf8.

That's not at all what I'm arguing.

I simply made the experience that concatenating binary strings and decoded strings lead to nasty errors. So if you don't bother to decode strings on input, telling Perl that the source file is UTF-8 is harmful.

If your script or module is written in UTF-8, input and output data is UTF-8, but you don't decode or encode, everything "works" in the sense that the output is correct UTF-8 (though of course the strings don't follow proper Unicode semantics internally). In this case use utf8; leads to incorrect output.

Perl 6 - links to (nearly) everything that is Perl 6.


Comment on Re^3: Writing a better Modern::Perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-04-21 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls