develooper Front page | perl.perl5.porters | Postings from January 2012

Re: pack and ASCII

Thread Previous | Thread Next
Leon Timmermans
January 13, 2012 13:46
Re: pack and ASCII
Message ID:
On Thu, Jan 12, 2012 at 9:53 PM, Eric Brine <> wrote:
> I've gathered all I said in one place. It will be my last post on the
> subject unless you specifically ask me a question ("Eric, ...?")

> That's a pretty serious problem, but it's easy to alleviate. If C<pack> were
> to downgrade when possible, the correct data will be obtained most of the
> time despite the two bugs present. I'm for that.

Shouldn't that be encode instead of downgrade?

> This can be addressed by clarifying the documentation. pack "A" works on all
> text, not just 7-bit ASCII characters.

Is there any actual use case where one may want to use pack "a" with
the current semantics? I can see it for "A", but not for "a".


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