H
hongyan
I have a ascii file has the format: each row has 32 bits.
00001001000101000000000000000000
00001001000010101000000000100000
10100001000011000000001000000000
10100010000011000000010000000000
..............
I want to change that to hex numbers and write it to another file as:
09140000
090a8020
a10c0200
a20c0400
..............
I tried pack and unpack but I can't get it.
Can you tell me a way to do it without installing the bit::vector
package? I am a novice to perl, thank you very much for your help,
Hongyan
00001001000101000000000000000000
00001001000010101000000000100000
10100001000011000000001000000000
10100010000011000000010000000000
..............
I want to change that to hex numbers and write it to another file as:
09140000
090a8020
a10c0200
a20c0400
..............
I tried pack and unpack but I can't get it.
Can you tell me a way to do it without installing the bit::vector
package? I am a novice to perl, thank you very much for your help,
Hongyan