Corey Perry put an end to his goal-scoring woes on Wednesday