in reply to Re^2: Etymology of chomp?
in thread Etymology of chomp?

Actually, chomp, by default, removes a newline. Which is actually ^J, not ^M. ^M is a carriage return, and will be left alone by chomp (unless $/ is set to something that contains it).

Replies are listed 'Best First'.
Re^4: Etymology of chomp?
by chacham (Prior) on Feb 26, 2012 at 15:51 UTC
    Actually, chomp, by default, removes a newline. Which is actually ^J, not ^M. ^M is a carriage return

    Excellent point. But chojp doesn't sound like Larry's native tongue. And there that little known factual fauxism that Larry originally wrote perl for the typewriter.