A note on perfect rings