Perl Tutorials: Input & Output In Binary Mode
If you want to open a file and read its content in binary mode, you should use the following functions:
- open() to open the file to a file handle.
- binmode() to set the file handle to binary mode.
- read() to read data from the file handle.
- close() to close the file handle

