develooper Front page | perl.perl5.porters | Postings from February 2000

Re: should "use byte" be "use bytes"?

Thread Previous | Thread Next
Andy Dougherty
February 9, 2000 14:22
Re: should "use byte" be "use bytes"?
Message ID:
On Wed, 9 Feb 2000, Mark Mielke wrote:

> Here we have a case of not understanding, and you shouldn't use it.

You are correct that I do not understand this stuff.  However, reading
perlunicode.pod, I think I maybe *should* use it:

: Unless mentioned otherwise, Perl operators will use character semantics
: when they are dealing with Unicode data, and byte semantics otherwise.
: Thus, character semantics for these operations apply transparently; if
: the input data came from a Unicode source (for example, by adding a
: character encoding discipline to the filehandle whence it came, or a
: literal UTF-8 string constant in the program),

Do you mean to say that it's impossible (not unlikely, but impossible) for
me to currently have a literal UTF-8 string constant in a program
(possibly automatically generated by another program) designed to deal
with arbitrary 8-bit binary data?  I guess I could answer that for myself
if I knew precisely what was meant by a 'literal UTF-8 string constant'.

    Andy Dougherty

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About