The New England Patriots edged the Green Bay Packers 31-27 in what was quarterback Matt Flynn's first NFL start.