sub next_power_of_two { my %s; @s{1..shift} = (); local $_ = %s; return m{/(.*)}; }
(I've changed the original code a bit to pass "use warnings"), -- so the annual Perl Code Joke prize goes to shmem!
In reply to next power of two by dk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |