for (1 .. 7) {push @days, $_ if ((2 ** $_) & $day_mask)}