In Perl, removes a possible occurrence of $/ at the end of $_ (or the specified variable). This is safer than chop, because it won't chop off anything else. Typically, you use chomp after reading a line with <FILE> to get rid of the trailing newline.

Chomping a list applies chomp to each one.