I see you have return $out now, but I don't see you setting $out.
Update: I reread your original post and now see where you talk about trying to avoid the very kind of approach you present there. But I don't see where the trampling you describe comes into it. Do see BrowserUk's suggestion of using vec, which is perl's builtin way of dealing with data by bits without conversion.
In reply to Re^3: perl bit matrix transposition / weak typing problem
by ysth
in thread perl bit matrix transposition / weak typing problem
by infi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |