You don't need more than $400 in cash for souvenirs and incidentals. In Peru, almost everything can be paid by card. For small purchases you will need local soles, which can be withdrawn at an ATM. The withdrawal fee is about $3-$5 per transaction.
Current exchange rate 1$=4 soles