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 16:03
Subject:
Re: [ID 19991119.003] chomp() can be confusing
Message ID:
199911192358.PAA24109@kiev.wall.org
Tom Christiansen writes:
: >When I said, "I talked to" I meant that.  I don't need the pointer - I know
: >how to handle it.  But I wind up answering questions from people who do
: >not.  In my experience most of them use chomp() so the confusion is
: >preventable.  (After all you expect chomp() to get rid of line endings,
: >right?)
: 
: 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.

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