if ( $today > $start && $today < $stop && $today != $notthisday[0] && $today != $notthisday[1] && $today != $notthisday[2] && $day == $dayofmon[0] || $day == $dayofmon[1] ) { print "$today is the day."; }