... if(($status[0] and $status[0] =~ /^match$/) && ($status[1] and $status[1] == 5) ) { ... } ...