R
Ren
Suppose I have a file containing several lines like this:
:10000000E7280530AC00A530AD00AD0B0528AC0BE2
The data I want to extract are 8 hexadecimal strings, the first of
which is E728, like this:
:10000000 E728 0530 AC00 A530 AD00 AD0B 0528 AC0B E2
Also, the bytes in the string are reversed. The E728 needs to be 28E7,
0530 needs to be 3005 and so on.
I can do this in C++ and Pascal, but it seems like Perl may be more
suited for the task.
How is this accomplished using Perl?
:10000000E7280530AC00A530AD00AD0B0528AC0BE2
The data I want to extract are 8 hexadecimal strings, the first of
which is E728, like this:
:10000000 E728 0530 AC00 A530 AD00 AD0B 0528 AC0B E2
Also, the bytes in the string are reversed. The E728 needs to be 28E7,
0530 needs to be 3005 and so on.
I can do this in C++ and Pascal, but it seems like Perl may be more
suited for the task.
How is this accomplished using Perl?