Hello Perl Gurus. I have been trying to read BInary file and have not found the best way to parse it through. I have been through perl forums and have not found a statisfactory answer.
Iam trying to read binary file (.bin) and read it to an array in hex format bytewise. I have two problems. 1. Read the file to an array. 2. Reading bytewise to array. I have used binmode FILE; undef $/; my $data = <FILE>; close FILE; my $hex = unpack 'H*', $data; Now I have got the file in a scalar variable. I want to split the variable into an array where each array index represents one 1 byte hex value. I have tried to use split command. But it takes a long time.and I do not how to split byte wise. Please help. jis -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/