ozgurp has asked for the wisdom of the Perl Monks concerning the following question:
I have perl script that normaly works with text files saved as unix text file. However sometimes people use my scripts with text files saved in windows and they complain that it does not work. I checked the problem and noticed that chomp() function does not remove the end of line character from a windows text file. What is the best way of removing this character without having to convert windows text file to unix text file?