That was my first attempt :)
sub byvec { no warnings 'portable'; vec( ${ $_[0] }, $_, 64 ) ^= ~0 for 0 .. ( length( ${ $_[0] } ) / +8 ); }
Nowhere close to tr///.
In reply to Re^2: In-place bitwise NOT?
by BrowserUk
in thread In-place bitwise NOT?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |