in reply to perl bit matrix transposition / weak typing problem
I have already written a reference implementation in C that met with great success.
Then why not use Inline::C to include it in your module.