On Sat, Jan 27, 2001 at 05:29:45PM -0500, Michael G Schwern wrote:
> I've noticed that perlfunc has some bad advice and examples on the use
> of chop, showing and advocating its use as a way to strip newlines
> from input.  This is what chomp() is for, of course, and isn't
> cross-platform (although perlport doesn't bring it up, odd).
> 
> Anyhow, I cut out all the naughty bits from perlfunc, but I can't
> think of good chop examples to replace:


I don't think there are any good examples. If there were any good
examples, it would mean chop would be a useful function to have.
But after the arrival of chomp, they only reason to keep chop is backwards
compatability.



Abigail

Reply via email to