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).
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.