$ cat test.pl binmode select, ':crlf'; print "\x{FC}\n"; binmode select, ':raw'; print "\x0D\x0A"; binmode select, ':encoding(UTF-8)'; print "\x{FC}\n"; $ perl -wMstrict test.pl | hexdump -C 00000000 fc 0d 0a 0d 0a c3 bc 0a |........| 00000008