Do you know where your variables are? | |
PerlMonks |
Re: Etymology of chomp?by JavaFan (Canon) |
on Feb 26, 2012 at 13:42 UTC ( [id://956262]=note: print w/replies, xml ) | Need Help?? |
I'd be surprised if chomp was named as it is, without consideration of chop. The functions act similar, and the names look similar. chop is older, but in a lot of places, where chop was used, chomp would be better. The change is minimal, add just one character. It does not surprise me if Larry did consider that fact when looking for a name for the function. And I'd bet Larry has looked for a similar, 4 character word as a replacement, but didn't find a better one.
In Section
Seekers of Perl Wisdom
|
|