http://www.perlmonks.org?node_id=11107848


in reply to bit array comparison

Hello, Amendil,

It looks like perl's unpack interpreted $i and $u as ASCII chars:
perl -le 'printf "[%b]", ord for 2, 7'
OUTPUT:
[110010][110111]