develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991119.003] chomp() can be confusing

Thread Previous | Thread Next
Larry Wall
November 19, 1999 18:23
Re: [ID 19991119.003] chomp() can be confusing
Message ID:
Tom Christiansen writes:
: >: I expect chomp() to remove one and only one terminating instance of the
: >: precise string to which $/ has been set; no more, no less.  What were
: >: you expecting?
: >I expect people to expect Perl to do the right thing.
: And that would be what, sniff around the stdio buffer the first time you
: play with it and figure out what it smells like?

Why do you say "you"?  Did I say I expect Perl to do the right thing?  :-)

Seriously, we are entering an era when dwimmerly action on input will
be a necessary evil.  I could wish it were otherwise, but my supply of
divine fiats is low.  And I don't think anyone else has enough fiats to
pull it off either.  For the near future I only see a chaotic dance
around the UTF-8 strange attractor, in part because a lot of butterflies
are flapping their wings near the UTF-16 attractor instead.  We're going
to live in interesting times, whether or not that's an ancient Chinese


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