binmode() - Opening Files for Binary Output
<< Open Files in Binary Mode
<< Perl Tutorials - Herong's Tutorial Examples
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.
Sections in This Chapter
binmode() - Opening Files for Binary Input
Copy.pl - Copying Binary Files
Bin2Hex.pl - Converting Binary Data to Hex Numbers