(forms a perfect infinitive; me is the object of the following verb)
I don't think I made a mistake.
Muchas gracias por haberme advertido.
Thank you so much for warning me.
¡Oh, pareces haberme confundido con alguien a quien le importa un comino!
Oh, you seem to have mistaken me for someone who gives a damn!
Siento haberme equivocado de dirección.
I'm sorry I went to the wrong address.