Chomp: It removes the last character from the expression. It may remove each element of the list if it matches the value $/. It is considered to be safer than chop as it removes only when there is a match.
Chop- It removes last character and each element.
CPAN- Comprehensive Perl Archive Network(CPAN) is a large collection of Perl software.