Re: CHAT: TECH: utf-8 in Perl comments
From: | Philip Newton <philip.newton@...> |
Date: | Tuesday, December 2, 2008, 20:51 |
On Tue, Dec 2, 2008 at 12:53, Benct Philip Jonsson <bpj@...> wrote:
> Mark J. Reed skrev:
>>
>> UTF-8 is safe in comments and POD unless you do something silly like
>> encode the comment-ending newline in multibyte form. But why don't you
>> want to use the utf8 pragma?
>
> I thought it could cause problems.
I think your information is influenced by old news; the behaviour
changed (IIRC) between 5.6 and 5.8.
The modern meaning should cause fewer problems than the old meaning.
(Incidentally, modern Perls can also handle UTF-8 source code without
"use utf8;" if the file starts with a UTF-8 BOM. Though some people
don't like UTF-8 BOMs for philosophical reasons.)
Cheers,
--
Philip Newton <philip.newton@...>
Reply