I have a large application that makes use of chomp(), which I am currently moving from windows to linux.
The data will be a mixture of files created on windows and a mixture that are created on linux. What I need to do is modify chomp(), global, so that it yanks the all of the trailing \r's and \n's, if they exist.
I'm trying to avoid having to find all occurances of chomp() and either replace it with a custom function, or add some code at each occurance of it.