The time she was in the country Peru , she learned to speak the language Spanish .
While she was in Peru , she learned to speak Spanish .