in reply to Re: help with algorithm
in thread help with algorithm

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

You didn't test it very well. You need 0..6 not 1..7.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: help with algorithm
by pg (Canon) on Nov 17, 2002 at 01:33 UTC
    Oops, I check back, he said Sunday = 0, you are right.