in reply to Vacation

my $num_bells = (($hour % 4)?($hour % 4)*2:8)+($min>=30);
I think that'd be clearer as:
my $half_hour = $hour * 2 + int($min/30); my $num_bells = ($half_hour + 7) % 8 + 1;

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: Vacation
by zakzebrowski (Curate) on Jul 10, 2002 at 15:50 UTC
    Yeah, I just tried to do the obfcu a little... (This was my first obfcu post...) Now I'm back from vacation, and back to the "real world".

    ----
    Zak
    "There is no room in this country for hyphenated Americanism" ~ Theodore Roosevelt (1915)