in reply to Re^4: Testing & Using Bits
in thread Testing & Using Bits

After

$Byte = substr($_[0],$i,1);

$Byte will contain a single character, but you want the ASCII code of that character. So, try:

$Byte = ord substr($_[0],$i,1);

I think:)