($failed = 1, $failed_job = $1, last LOOP) if ($2 eq "No" and $3 eq "F")