thanks for your query at HCM
middle ear and external ear are separated by ear drum.
if there is any perforation in ear drum then middle ear will be in direct communication with external environment.
so putting hydrogen peroxide
might damage sensitive hearing parts inside middle ear.consult ENT specialist
determine the nature and location of perforation, take medication or surgery according to doctor. do not put anything in ear until doctors advice