Perfect intervals