Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If the fields are prefixed with length bytes, then you can prevent 'a*' (or 'A*' or 'Z*') from consuming the rest of the string by telling format that the length byte is there.
The downside is that the length byte is then consumed. To workaround that, you have to unpack the length byte twice.
However, I don't see how this helps the OP as his data has a 'type' byte but no 'length' byte. Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"Think for yourself!" - Abigail In reply to Re: Re: How much was unpack()ed?
by BrowserUk
|
|