Perry's turbulent appearance in an episode of the first season of '90210' touched on depression and suicidal ideation.