my $last_5_bits = -9133545115225966845 & 31; # 3
although I'd prefer hex (but that's just me)
my $last_5_bits = -9133545115225966845 & 0x1f; # still 3
In reply to Re: The last 5 bits in perl
by FunkyMonk
in thread The last 5 bits in perl
by sweetser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |