Yup, you are right about cperl mode. It's just that I don't
know a better replacement. In my experience, nearly all modes for Perl break on complicated constructs (this is BTW a good incentive to keep your Perl readable).
If you can find out where this "pretty-print" option comes
from, it should not be hard to automate it, too - I will
be glad to help (though I don't use xemacs, but GNU emacs,
and pretty-print is not there in my emacs :-( ... might be the incentive to go for xemacs?).
Brainbench MVP for Perl