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