in reply to Re: Handling Hex data with Dynamic unpack
in thread Handling Hex data with Dynamic unpack
binmode does not work on a scalar, only a file handle. substr can be either in utf8 mode or byte mode, and substr doesn't guarantee the returning scalar is in one or the other mode.