Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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).


Comment on Re^3: Etymology of chomp?
Select or Download Code
Re^4: Etymology of chomp?
by chacham (Curate) 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 chilling in the Monastery: (5)
As of 2014-09-21 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls