in reply to perl bitology - breaking into bytes

File::Binary will help. It was written as part of the project which needed to deal with a file format which used weirdly sized bit fields.
  • Comment on Re: perl bitology - breaking into bytes