Award-winning EastEnders actress Maisie Smith, who plays the role of Tiffany Dean, and YouTuber Aaron Martyn were at Perth High to warn youngsters about the dangers that lurk online.
They were visiting as part of their Britain-wide tour of educational establishments.
Perth High social subjects teacher Natasha Sturrock said: “Maisie and Aaron spoke to pupils about making the right online choices.
“They have already been to many schools in England and Wales and are now doing the same work in Scotland.
“They are young people warning other young people about online dangers and the pupils were excited to have them at the school.”