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

Re: [perl #79960] Setting $/ to read fixed records can corrupt validUTF-8 input

Thread Previous | Thread Next
From:
Eric Brine
Date:
March 1, 2012 11:25
Subject:
Re: [perl #79960] Setting $/ to read fixed records can corrupt validUTF-8 input
Message ID:
CALJW-qHCQjAa-_Z=5AJC2zqfm31egEp4NcnA4-a_yhUaV1+W2A@mail.gmail.com
On Thu, Mar 1, 2012 at 2:22 PM, Eric Brine <ikegami@adaelis.com> wrote:

> On Thu, Mar 1, 2012 at 1:13 PM, Karl Williamson via RT <
> perlbug-followup@perl.org> wrote:
>
>> I can't find my proposal in the record of this ticket, nor anyone
>> responding to it.  The documentation says that $/ gives the *maximum*
>> record size.  So why not return as many whole characters as will fit in
>> $/ bytes?
>>
>
> Sounds like "can't make everyone happy, so make everyone unhappy".
>
> It doesn't help those who want $/ to control the number of elements read
> by the leftmost layer.
>
> It doesn't help those who want $/ to control the number of elements read
> by the rightmost layer.
>
> That last "read" should say "returned".

- Eric


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