Thanks for the explanation. I wasn't getting his solution at first until I saw your description of the steps. For those who need a little more (as I did): perlpacktut. It's funny, I'm sure we've all read that document numerous times, and yet before this I never noticed the % feature.
Update: Fixed perlunpacktut: sb perlpacktut.
Dave
In reply to Re^3: Efficient bit counting with a twist.
by davido
in thread Efficient bit counting with a twist.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |