Have you looked at Bit::Vector?
With the Interval_xxx funtions it should be possible...
In reply to Re: Read Bit String...!!! by stark in thread Read Bit String...!!! by MimisIVI