Learning emacs and Perl at the same time: surely a big
endeavour! But with great rewards after a while. My best
wishes.
To answer a few points in your posting:
- If your emacs kit is complete, you should already have perl
mode and cperl mode. Your problem is to invoke it. See below.
- The use of these modes is to get colors (comments in pink,
double-quoted strings in purple, etc), to get a proper indentation
each time you type a brace, or a semi-colon, and other nifty
features.
- .emacs is the personal configuration file, like .profile
or .vimrc for other purposes. It should be in your home directory.
- The lines you should add to this file: their use is to invoke
*automatically* perl mode or cperl mode, each time you load
("visit" as they say in emacs doc) a perl script. But
you do not really need it at first. Instead, you can type
ESC x perl-mode RET
or ESC x cperl-mode RET
each time you "visit" a perl script. Later, when you are no longer
a newbie, you will update your .emacs script, with the perl mode
you like better (perl or cperl).
- When you know enough emacs commands, including split window
commands, you should try this:
- "visit" a perl script
- open "Programming Perl" (the Camel book) page 517
- type ESC x perldb
- enjoy!
I have tried the Perl debugger while in bash, and I have disliked
it. I have tried it while under emacs, and it is great!
- If you can read French, I can help you learn emacs, by sending you
a list of useful commands. This is a 9K HTML file. Write
me to Ponder.Stibbons@wanadoo.fr (person to person mail,
no mailing list, no Perl monk web page)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.