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

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

Thread Previous | Thread Next
From:
Larry Wall
Date:
November 19, 1999 18:23
Subject:
Re: [ID 19991119.003] chomp() can be confusing
Message ID:
199911200217.SAA24898@kiev.wall.org
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
curse.

Larry

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