in reply to Re: BIN to HEX
in thread BIN to HEX

If the file is binary, you should add:

binmode MYFILE;
right after the open. Also the line:
if ($byte > 0x30) {
should read:
if (ord($byte) > 0x30) {