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