Perry Gets Fired!

When Doofenshmirtz uses his old "Devolition-Inator" he makes Perry do evil things and eventually, gets him fired! Now he has to prove he's a good guy and get his job back. But how?