Take another look at the sentence:
Perched on the curtain rod, the parakeet watched Rocky the cat slink behind
the living room sofa.
Perched on the curtain rod, a participle phrase, comes right before the noun parakeet. This is a clear and logical pairing of target and modifier. There is no error.
Before you continue, review the rules for misplaced and dangling modifiers.