Hi,

I need to unpack a string packed in next form:


<STX><msg. body><LRC><ETX> where:

<STX> is a star character defined as ascii 2

<ETX> is an end character defined as ascii 3

<LRC> is a check sum calculated by performing an exclusive OR of all
characters of the message, including STX but excluding ETX and then
substituting ASCII 02 and ASCII 03 with ASCII 85



Is it possible to use the function unpack() in order to get the <msg. body>
part of the string?



Thanks.


Teddy


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to