sub stest { my $str = shift; foreach (@_) { substr($str,$_-1,2) =~ /^(10|01)/ || return; } return 1; } #USE: stest( $bit_string, @indexes )
In reply to Re: Re: Re: fast bit twiddling
by esialb
in thread fast bit twiddling
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |