Pereira has surgery for pneumonia