Do you mean an ASCII file of hexadecimal numbers, or do you just mean a binary file? Do you know how to open a file, and do you know about binmode? Then you might want to read about read and substr or s.
Caution: Contents may have been coded under pressure.