in reply to Re^2: chomp() is confusing
in thread Why chomp() is not considering carriage-return
As of today using Strawberry Perl 188.8.131.52 (64bit), Perl doesn't automatically adapt chomp at all to the platform nor converts automatically the carriage return from files that are read.
For me, it always just remove \n, and that's all.
My solution: either change the special var as suggested above, or use your own chomp with a substitution regexp: s/(\n|\r)//g
Or of course, change the carriage return of all your files.