Sports

Matt Cain is perfect for 5 innings but Cubs top Giants

  • San Francisco Giants starting pitcher Matt Cain throws to the Chicago Cubs during the first inning of a spring exhibition baseball game in Scottsdale, Ariz., Monday, March 10, 2014. (AP Photo/Chris Carlson)

    San Francisco Giants starting pitcher Matt Cain throws to the Chicago Cubs during the first inning of a spring exhibition baseball game in Scottsdale, Ariz., Monday, March 10, 2014. (AP Photo/Chris Carlson)  (The Associated Press)

  • Chicago Cubs' Chris Coghlan, right, breaks up a double as San Francisco Giants second baseman Tony Abreu over throws first during the seventh inning of a spring exhibition baseball game in Scottsdale, Ariz., Monday, March 10, 2014. (AP Photo/Chris Carlson)

    Chicago Cubs' Chris Coghlan, right, breaks up a double as San Francisco Giants second baseman Tony Abreu over throws first during the seventh inning of a spring exhibition baseball game in Scottsdale, Ariz., Monday, March 10, 2014. (AP Photo/Chris Carlson)  (The Associated Press)

  • San Francisco Giants' Michael Morse celebrates after scoring on a two-run single by Pablo Sandoval during the fourth inning of a spring exhibition baseball game against the Chicago Cubs in Scottsdale, Ariz., Monday, March 10, 2014. (AP Photo/Chris Carlson)

    San Francisco Giants' Michael Morse celebrates after scoring on a two-run single by Pablo Sandoval during the fourth inning of a spring exhibition baseball game against the Chicago Cubs in Scottsdale, Ariz., Monday, March 10, 2014. (AP Photo/Chris Carlson)  (The Associated Press)

Matt Cain pitched five perfect innings for the San Francisco Giants on Monday, but the Chicago Cubs rallied for a 3-2 victory.

The right-hander, who will be the Giants' No. 2 starter behind left-hander Madison Bumgarner during the regular season, threw 59 pitches and struck out seven.

Right-hander Jeff Samardzija, the Cubs' opening-day starter, also had an effective outing. He gave up two runs in four innings and struck out five.

Pablo Sandoval's two-run single in the fourth gave the Giants an early lead, but the Cubs scored a run in the sixth and two in the seventh. The decisive run scored on two infield errors as part of the same play.