My altaria can learn both so my question why not in triple battle or so, force the opponent to keep switching or take the hit. Yes I am aware they could knock out altaria but he won't be the biggest threat
Safeguard prevents the user and its party from being affected by any status condition for five turns except those caused by special abilities, held items or self-inflicted statuses.
Perish Song isn't a status move/ condition; Safeguard makes no difference to it.
Safeguard