This article teaches you how to use Perl to interact with files on your system, and also provides you with a quick crash course in various array functions.
This tutorial describes: How to open files for input in binary mode. How to open files for output in binary mode. Example program to copy binary files Example program to convert binary data to hex numbers. Opening Files for Binary Input