Ok, I guess I'm the only James Bond fan here after all...I'm in the process of assembling a full set of DVD's. I only have 5 left.
Anyways, the film is "You Only Live Twice." The line comes when Bond is meeting with Henderson, and Henderson prepares the vodka martini, hands it to Bond and says "Stirred, not shaken." Bond then replies, "Perfect," although any fan knows this is not the way he prefers his martinis at all.
This is the film that "Austin Powers II: The Spy who Shagged Me" is a direct parody of, although the title would have you to think it is more like the Bond film "The Spy Who Loved Me."