if (($current[0] == $wake[0]) && ($current[1] == $wake[1])) { # times match }