~$ perl -E '$x = "|\r\n";print $x;chomp $x; print $x' | xxd 0000000: 7c0d 0a7c 0d |..|.