Perl Tutorials - Herong's Tutorial Examples - 6.00, by Dr. Herong Yang
binmode() - Opening Files for Binary Output
This section describes steps on how to open file for binary output using open(), binmode() and print() functions.
If you want to open a file and write binary data to it, you should use the following functions:
Note that the print() function can be used in both binary mode and text mode. In binary mode, print() will not convert \n to \r\n in Windows system.
Table of Contents