I've been using Bit::Vector for similar bit groupings within a 16-bit value when doing TCP/IP header manipulation with Net::Frame, its sub-modules and Perl Packet Crafter.
I always found Bit::Vector a bit hard to understand, but it did what I needed. Your approach seems a bit more flexible and friendly.
In reply to Re: Bit string manipulation made easy with Bit::Manip
by VinsWorldcom
in thread Bit string manipulation made easy with Bit::Manip
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |