Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

EMACS/Perl Tutorial

by Anonymous Monk
on Jul 21, 2003 at 05:43 UTC ( [id://276146]=perlquestion: print w/replies, xml ) Need Help??

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?

Adam

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.

    --
    3dan
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 http://www.dotfiles.com/files/6/108_.emacs 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.8.8.32.11.32"

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, http://bob-n.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://276146]
Approved by sgifford
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-25 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found