Ivan Perisic scored a goal in each half as Croatia beat Mali 2-1 in their final home friendly before the World Cup finals in Brazil.