in reply to Re: Re: Unpacking fixed length records
in thread Unpacking fixed length records
$str = "\000\005ABC\000\004DE\000\003F"; $fmt = "(n XX /a)*";returns
'0', '5', '65', '66', '67' '0', '4', '68', '69' '0', '3', '70'Also tried it with "(nXX/a)*" with same results. When you run the same program does it get different results or a syntax error? You said it doesn't parse? As in it doesn't split the input correctly? Could it be a big/little-endian problem?
(shenme wants to know if the battery in his new toy has run down)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^4: Unpacking fixed length records
by diotalevi (Canon) on Oct 07, 2002 at 14:29 UTC |