Oops, that * in the unpack template was redundant.
my @chunks = unpack '( (x4L X8Lx4/a L)> )*', $input; while ( my ($tag, $data, $crc) = splice(@chunks, 0, 3) ) { ... }
In reply to Re^2: Modifying pos() from within (?{...})
by Anonymous Monk
in thread Modifying pos() from within (?{...})
by mxb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |