SF@PIT: Giants close gap on Perez's sacrifice fly