Re: CHAT: TECH: utf-8 in Perl comments
From: | Mark J. Reed <markjreed@...> |
Date: | Tuesday, December 2, 2008, 15:37 |
AFAIK, best practice for Perl 5 is to use UTF-8-encoded source with
the "use utf8" pragma. At some point in the future, if not already,
perl5 will assume UTF-8 and the pragma will become a no-op. UTF-8 is
specified as the default in Perl 6.
On 12/2/08, 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.
>
>> On Mon, Dec 1, 2008 at 6:58 AM, Benct Philip Jonsson <bpj@...>
>> wrote:
>>> Can one use utf-8 characters in the
>>> comments in a Perl script without invoking
>>> use utf8? I can and do use \x{1234} in the
>>> code, but can't very well use it in the
>>> comments and still read what I've written!
>>>
>>> /BP
>>>
>>
>>
>>
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <markjreed@...>
Reply