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.
In reply to Re^2: Print Behavior with Carriage Return
by haukex
in thread Print Behavior with Carriage Return
by parapunker81
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |