Programing Perl describes chomp as "This function (normally) deletes a trailing newline from the end of a string contained in a variable. This is a slightly safer version of chop"
chop itself is "This function chops off the last character of a string variable and returns the character chopped."
IOW, chop does what it means, it chops off the end. chomp is a very similar one, that only (before version 5.6) chops off ^M
.In reply to Re^2: Etymology of chomp?
by chacham
in thread Etymology of chomp?
by tankee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |