This is not normal behaviour and where we will need to see some code to understand what is happening. Altering the value of the input record separator,
$/, in the manner described has no effect on the substance of the data read into the scalar variable.
perl -le 'print+unpack("N",pack("B32","00000000000000000000000111111000"))'