A-League: Victory edged out by Perth