in reply to chomp() function and windows text format

The statements throughout this question smack of misinformation or misunderstanding. You may want to read perldoc -f chomp (or, online, chomp).

I think you'd also do well to show us some code and samples... and explain what the "scripts" are supposed to accomplish. Better, all the above and an explanation of their complaints (if anyone has provided detailed info; if not, do your own tests).