Hi There,
I'm a C programmer, new to perl.
I'm a little disoriented with the shear number of functions available.
I want to use a perl script to break up the following packet into it's individual components:
<Address (2 digit hex)><Command (1 digit hex)><Length (2 digit hex)><data (Length bytes>
Typical Packet:
01A05hello
Where:
Address 1
Command A
Length 5
Data hello
Also, the script input may contain a number of the packets e.g. <packet 0><packet 1><packet2>
Is there a whiz bang function that can break up these packets into the individual components?
Many thanks,
Lee
I'm a C programmer, new to perl.
I'm a little disoriented with the shear number of functions available.
I want to use a perl script to break up the following packet into it's individual components:
<Address (2 digit hex)><Command (1 digit hex)><Length (2 digit hex)><data (Length bytes>
Typical Packet:
01A05hello
Where:
Address 1
Command A
Length 5
Data hello
Also, the script input may contain a number of the packets e.g. <packet 0><packet 1><packet2>
Is there a whiz bang function that can break up these packets into the individual components?
Many thanks,
Lee