Front page | perl.perl5.porters |
Postings from January 2012
Re: pack and ASCII
Thread Previous
|
Thread Next
From:
Leon Timmermans
Date:
January 10, 2012 14:55
Subject:
Re: pack and ASCII
Message ID:
CAHhgV8g=cAby=oZKEoJVb-qZh7AOnBCtUcOWkD2Aj20Af4ioTw@mail.gmail.com
On Tue, Jan 10, 2012 at 9:17 PM, Eric Brine <ikegami@adaelis.com> wrote:
> bytes::length does not return the number of bytes in $foo.
It seems I define byte as octet of data, and you define it as
character in a bytestring, which causes confusion (yeah I know, both
of these definitions suck, but I hope you know what I mean).
> Not true. Those aren't exclusive. Right now, both DWIM. The former returns
> exactly one byte. The latter returns exactly one character.
They don't DWIM for me. I mean to get a bytestring as result. I mean
the quantifier to A/a to be the with in octets, always.
> You still didn't say what you think the two formats should do.
I want reliable byte semantics when I'm using pack. If other people
want character semantics that should be separate from this. This
polymorphism is madness.
Leon
Thread Previous
|
Thread Next