One of the most simple things you can do with Perl, is process text files. For that, you usually use the diamond operator, you chomp the read line, and process, line by line.
This is great and works mostly of the times.
Or, in the other hand, works when you can control where your files, the ones being processed, come from.
Because, if you want to make a generic application, you need to know that when running on Unix, chomp will remove the newline, but not the carriage return character, unlike when the same script is run under windows.
And I think that is annoyi…