What do you mean by a hex file? Do you mean a binary file? If that is the case then look at open and binmode.
Assuming we are dealing with binary data here, not text, you will have to convert the binary into Perl format using unpack. You will need the exact format of the data (this is sometimes the hardest part).
To jump to another location in the file you will need seek.