Perez opened the seventh by getting Justin Morneau to strike out swinging. But the ball got by catcher Miguel Montero, allowing Morneau to reach first on the wild pitch.
Morneau would advance to second on a balk. But he was stranded there, as Perez struck out Corey Dickerson, Michael McKenry and Matt McBride swinging to end the inning.
"It was just one of those days that happens," Perez said. "More importantly, we didn't win."
That it had not happened in the history of the D-backs, who started play in 1998, was surprising. The fact that it even happened caught Perez off guard.
"I didn't even know I stuck out four guys when I finished the inning," Perez said. "So I'm kind of surprised."
Steve Gilbert is a reporter for MLB.com. Read his blog, Inside the D-backs, and follow him on Twitter @dbackswriter. This story was not subject to the approval of Major League Baseball or its clubs.