Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Etymology of chomp?

by JavaFan (Canon)
on Feb 26, 2012 at 13:34 UTC ( #956260=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-08-28 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (390 votes). Check out past polls.