in reply to Re: Print Behavior with Carriage Return
in thread Print Behavior with Carriage Return

chomp will then remove both line ending characters.

Nitpick: I/O layers don't change the behavior of chomp, it will continue to remove $/, which is typically one character, "\n", even on Windows. The I/O layer converts \r\n to \n when reading, so the strings end in just "\n" before they are even touched by chomp.