in reply to Working with BIG binary fields

I don't understand the format of the data you've posted. But, assuming that by "binary", you really do mean binary, and not some ascii-encoded hex representation of the original binary, then the solution to your problem is vec.

my $binaryString = ...; if( vec( $binaryString, 123, 1 ) == 1 ) { ## bit 123 was set } else { ## it wasn't }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy