Lehman shot a 72 to match Bill Glasson (68) and Mike Goodes (69) at 14 under.
Lehman was in second for most of the day, but bogeyed No. 12 and bogeyed the par-5 17th after hitting a pitch shot in the water.
First-round leader Larry Mize was tied for second on the last hole, but put two balls in the water and finished with a 75 to drop to seventh at 12 under.
"Much tougher day with the wind," Mize said. "We had two ideal days to play and today was a tough day."
Perry tied Allen Doyle's 1999 tournament mark for the largest margin of victory.
Perry had 24 birdies, two short of the tour record for a 54-hole event. The bogey on the final hole dropped Perry into a tie with Langer for the tournament scoring record that Langer set last year at The Quarry.
Perry earned $240,000. He won the SAS Championship in October a day after his sister died of breast cancer, two years to the day Perry's mother died from cancer.
Perry won twice in Naples previously — teaming with John Huston in 2005 and Scott Hoch in 2008 at the Franklin Templeton Shootout, an unofficial PGA Tour event.