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

Re: pack and ASCII

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
January 10, 2012 15:05
Subject:
Re: pack and ASCII
Message ID:
20120110230511.GA27580@cancer.codesimply.com

So, what does it mean someone is asking for, when he or she writes:

  my $string = qq[Queensr\N{LATIN SMALL LETTER Y WITH DIAERESIS}che];
  my $packed = pack "A*", $string;

All the other confusion of this thread aside, I *think* that we all agree that
the person writing this is making a mistake.  Is that true?  Do we all agree
that this should be (or would not be incorrect to be) a warning?

My hunch is that we will want a warning and an improvement to the
documentation.

-- 
rjbs

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