Cain is first perfecto, but Giants know no-nos