develooper Front page | perl.beginners | Postings from March 2011

Re: transposing %d values to %x output

Thread Previous | Thread Next
From:
Chas. Owens
Date:
March 30, 2011 04:54
Subject:
Re: transposing %d values to %x output
Message ID:
AANLkTi=vpBKWsNYs_HgzyQ=o9jTyTLkS_uGOVErGEymq@mail.gmail.com
On Wed, Mar 30, 2011 at 00:28, Brian Fraser <fraserbn@gmail.com> wrote:
> On Wed, Mar 30, 2011 at 12:46 AM, Chas. Owens <chas.owens@gmail.com> wrote:
>>
>> If you are dealing exclusively with ASCII, then you should be using
>>  the [bytes][0] pragma;
>
> It's nitpicky, but I'd advice against ever recommending use bytes in the
> beginners list. Or any list really. See:
> http://www.nntp.perl.org/group/perl.perl5.porters/2011/03/msg170010.html
> Brian.

Hmm, I had missed that change.  Thanks.  An easier to read version
comes from the Perl 5.13.11 version of the bytes pod:

This pragma reflects early attempts to incorporate Unicode into perl and
has since been superseded. It breaks encapsulation (i.e. it exposes the
innards of how the perl executable currently happens to store a string),
and use of this module for anything other than debugging purposes is
strongly discouraged. If you feel that the functions here within might be
useful for your application, this possibly indicates a mismatch between
your mental model of Perl Unicode and the current reality. In that case,
you may wish to read some of the perl Unicode documentation:
L<perluniintro>, L<perlunitut>, L<perlunifaq> and L<perlunicode>.

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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About