A four-year-old boy in Peru had his sight saved by doctors after a six-inch rod became lodged in his eye socket.