if ($remoteIP ~~ @k){ if ($hash{$remoteIP} > $v[$remoteIP]){ print "YAY IT WORKED"; } }