in reply to Vacation
I think that'd be clearer as:my $num_bells = (($hour % 4)?($hour % 4)*2:8)+($min>=30);
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 |