http://qs321.pair.com?node_id=11121875


in reply to Re: Losing Bits with Pack/Unpack
in thread Losing Bits with Pack/Unpack

Yeah, this is the idea. I see this javascript solution uses a lookup array and is using bitwise operations to construct an index to lookup in the array... Seems like this could be rewritten in perl with similar bitwise ops, but there is no "simple" solution using only pack and unpack based on the fact that those methods are byte aligned. Thanks for the help!