1: \begin{abstract}
2: We classify the finite quasisimple groups whose commuting graph is perfect and we give a general structure theorem
3: for finite groups whose commuting graph is perfect.
4: \end{abstract}