For fixed-length formats (like 'd'), a '*' means "consume the remaining arguments". For formats that can have a length (like the ones you are trying to switch to), a '*' means "use the length of the next argument".
So you need to repeat the variable-length format specifications an appropriate number of times. Like:
'l5Z*'.('Z*'x@s)
- tye
In reply to Re^6: Write Matlab binary MAT-files from Perl (repeat)
by tye
in thread Write Matlab binary MAT-files from Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |