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

Re: Is $/ the right abstraction? [was: Setting $/ to read fixedrecords can corrupt valid UTF-8 input]

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
March 4, 2012 10:51
Subject:
Re: Is $/ the right abstraction? [was: Setting $/ to read fixedrecords can corrupt valid UTF-8 input]
Message ID:
20120304185130.GA22410@fernweh.plasmasturm.org
* Mark Jason Dominus <mjd@plover.com> [2012-03-04 10:55]:
> Suppose it were a fatal error to read from a multibyte-encoded string
> while $/ was set to a number. What would be wrong with that?

Good question. My first answer was that so it seemed like a waste of an
opportunity to do something helpful. Now that I have seen the problems
with trying to help, the explicitness it forces on the user seems like
a feature to me instead of a weakness.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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