My first guess is that you didn't try this code. For me, vec only allows field sizes that are powers of 2 (and this restriction is still in 5.8's vec docs -- the latest PM currently links to).
Illegal number of bits in vec at ...
- tye
In reply to Re^2: pack/unpack 6-bit fields.(!vec)
by tye
in thread pack/unpack 6 bit fields.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |