On Mon, 13 Aug 2001, Kenneth Graves wrote:

> Hmm?  Has plain perl-mode gotten some recent upgrades I haven't paid
> attention to?  I find cperl-mode understands more perl constructs.
> And I like its default indentation better than perl-mode's.

>From v19 to v20 perl-mode seemed to get quite an overhaul.  Among 20.x
releases I haven't noticed anything drastic.

Admittedly, cperl-mode does understand more perl constructs than
perl-mode (particularly the different forms of quoting).  Every once
in a while, I'll find myself needing to do things like

  # '  <- appease font-lock    or
  m/\"/                        (unnecessary backslash)

So what's the selling point of perl-mode?  Out of the box, I find it
much easier to read; some of cperl's low-contrast highlightings are
just a little hard on my eyes.  I could never get used to the
trailing-underline-as-you-type thing either.

Being somewhat of a tweaker, I've spent quite a bit of time tinkering
with settings for both.  With cperl-mode, I never got things to the
point where I was happy.  With perl-mode, I did it in three lines:

  (setq perl-indent-level 2)
  (setq perl-continued-statement-offset 2)
  (setq perl-continued-brace-offset -2)

(Cuts the indentation level in half for the most part).

-- 
Steve Revilak

Reply via email to