Chas. Owens wrote:
On Wed, Apr 22, 2009 at 15:25, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote:
snip
Yeah, it looks so. With "use utf8" (http://perldoc.perl.org/utf8.html) one
can however make them parsed (decoded) (provided they are valid UTF-8).
No. The utf8 pragma is about allowing UTF-8 encoded *symbols*, e.g. variable
names or subroutine names.
snip

From perldoc utf8[1]:
    Bytes in the source text that have their high-bit set will be
    treated as being part of a literal UTF-X sequence. This includes
    most literals such as identifier names, string constants, and
    constant regular expression patterns.

The utf8 pragma affects the whole file,

Well, only the part of the file that is parsed after the

    use utf8;

statement, right?

not just variable and subroutine names.

Yes, I agree on that now. Thanks for the correction.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to