Hi all,
Can someone please help...
I am trying to write a script to do the following -
1/ Open up a binary file to read.
2/ Read the file byte by byte.
3/ Convert the bytes read from binary to Hex.
I think the "binmode" and "pack" function should be used but can't get it right... or
maybe I'm completely off the planet!
binmode FILEHANDLE;
read (FILEHANDLE, $var, 1);
$out = pack("B8", $var);
Thanks for your time in advance.
Jon.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]