Another problem with correcting perspective with an enlarger is the loss of part of the negative's image. A wider angle lens must be used in the original shot if correction is necessary in the darkroom. Also, some dodging may be required to even out print exposure.
Some enlargers can tilt both negative and lens plane. My old DeJUR Professional 4x5 is one. Little stopping down is required