Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there some good tutorial about using EMACS to develop Perl code?


Replies are listed 'Best First'.
Re: EMACS/Perl Tutorial
by moxliukas (Curate) on Jul 21, 2003 at 06:44 UTC
Re: EMACS/Perl Tutorial
by edan (Curate) on Jul 21, 2003 at 08:45 UTC

    <shameless_plug>If you want to consider using the all-powerful vim editor, you can find an excellent article by TVSET on using it with perl: Vim for Perl developers</shameless_plug>

    But if you have your heart set on Emacs (Don't get me wrong: Emacs is a great operating system---it lacks a good editor, though.) (sorry couldn't resist), then a quick Super Search for "emacs" came up with the following (I only breezed through about 70% of the DB, so you may do well to search all the way through the results):

    None of these links is an actual "EMACS/Perl Tutorial" as you requested, but you might find some useful links/info.

Re: EMACS/Perl Tutorial
by sgifford (Prior) on Jul 21, 2003 at 07:36 UTC

    I don't know of a good tutorial, but here's some general hints.

    The two EMACS modes for editing Perl are perl-mode and cperl-mode. Unfortunately, they both fail to parse Perl correctly sometimes. Still, they're better than nothing; cperl-mode has some pretty convenient features, like accessing POD documentation directly from EMACS, and is better documented (use the Perl menu and select Microdocs). I usually switch back and forth between the two modes as I get sick of the bugs in one or the other.

    The indenting they use is similar to the indenting that c-mode uses; you may want to read through the documentation for that, too.

Re: EMACS/Perl Tutorial
by strat (Canon) on Jul 21, 2003 at 08:53 UTC
    If you need an IMHO rather good .emacs for Win32, you could give a try. If you change the windows-paths to unix-paths, you can also use it with linux or solaris (e.g. change
    ;; Start off in "C:/" dir. (cd "C:/") ... (setq default-directory "C:/") ... (find-file "C:\.emacs")
    to values which work unter linux as well)

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8."

Re: EMACS/Perl Tutorial
by Anonymous Monk on Jul 21, 2003 at 05:54 UTC

    What did you want to know?

    To answer your question - probably not. Why would someone write an editor-dependent Perl tutorial? (or, more likely, in this case, a language-dependent emacs tutorial ;). What would be so special about writing Perl using emacs?

Re: EMACS/Perl Tutorial
by bobn (Chaplain) on Jul 21, 2003 at 08:41 UTC

    Update: Nevermind.

    --Bob Niederman,