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, not just variable and subroutine names.

1. http://perldoc.perl.org/utf8.html

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
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