The Friends alum described the incident as shameful.

It all started out as a conversation about being half-American, half-Canadian on Jimmy Kimmel Live.

Talk show host Kimmel brought up the fact that Canadian Prime Minister Justin Trudeau and Perry were in school at the same time.

Perry responds, β€œI’ve a story about him that I’m not proud of” and he recounts the story explaining he acted out of β€œpure jealousy.” β€œI think he said, β€˜I’m going to rise above this and become prime minister,’” he explains.

You can watch the segment here: