I've been using Emacs for a while now, and I currently use perl-mode for all my perl syntax highlighting needs. I've been looking for a way to change the default indentation of perl-mode, and nearly all the documentation I could find online said very little about perl-mode, and just said (I'm paraphrasing) "perl-mode screws up perl highlighting, cperl-mode is MUCH better, everyone sensible uses cperl-mode"

So I think to myself 'well, you're a sensible person on occaision, why not give this "cperl-mode" another go?' I've looked at it briefly before but it was so alien (not to mention ugly) that I discarded it there and then. One of the major reasons I discarded it before was that I don't seem to have any problems with perl-mode. This almost certainly reflects my non-advanced perl code. But it does make me wonder:

I know this last point is shallow, but I find the array and hash highlighting distracting, and the variable highlighting within comments annoying. I've managed to change some of these things in the customisation buffer, but by no means all of them. I don't mind fiddling around to make things prettier, but I want to know it's going to be worth it!

This wasn't meant to be quite so much of a rant..! If cperl-mode is so good, I want to be able to like it, and use it without it frustrating me.. so if anyone has any answers to these questions or any resources I can use to help me fiddle with it (I am VERY lisp ignorant but willing to learn, though don't seem to have any luck with getting hold of a working interpreter) then I'd be grateful. So here is chance for any cperl-mode fanatics out there to convert me :)
why_bird
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......

In reply to c-perl mode on Emacs by why_bird

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.