The most common use of the perfect infinitive is to say ‘after having done’ something. Après avoir fait mes devoirs, j’ai regardé la télé. – After having done/After doing my homework, I watched TV.
With infinitives you can either attach the object pronoun to the end of the infinitive or put it before the first conjugated verb. With sentences that include a present participle, you can either ...