Ok I get it. I can do unpack '(nX/a)*' but apparently more than one 'X' isn't supported. The pattern I would actually use is '(nXX/a)*' and that doesn't parse. Boo hoo! This almost looks like a thinko on the part of whoever implemented this for 5.8.0. It's a nice feature but I don't know how many people really want to be limited to packed strings of 255 chars or less.
__SIG__ printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B:: +svref_2object(sub{})->OUTSIDE
In reply to Re: Re: Unpacking fixed length records
by diotalevi
in thread Unpacking fixed length records
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |