On Wed, Apr 22, 2009 at 15:25, Gunnar Hjalmarsson <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/