home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!florida!essbaum
- From: essbaum@rchland.vnet.ibm.com (Alexander Essbaum)
- Subject: perl-mode.el and indenting
- Sender: news@rchland.ibm.com
- Message-ID: <1993Jan26.164352.13803@rchland.ibm.com>
- Date: Tue, 26 Jan 1993 16:43:52 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- Nntp-Posting-Host: florida.rchland.ibm.com
- Organization: IBM Rochester
- Lines: 29
-
- i recently (coupla weeks actually) got perl-mode.el from someone via email.
- what i got was uuencoded, tarred, and compressed. unfortunately, our weenie
- mailer munged the mail message a bit and i've had to manually edit the
- uuencoded stuff. i still get "the file is too short" when i uudecode, but
- uncompress and tar don't complain but i'm still not sure if i've got a good
- perl-mode.el.
-
- i get:
-
- % /bin/ls -l perl-mode.el
- -rw-r--r-- 1 essbaum system 25802 Feb 06 1992 perl-mode.el
- % /bin/cksum perl-mode.el
- 2895779942 25802 perl-mode.el
-
- does this look right?
-
-
- the reason i'm wondering is because the indenting i get in perl-mode is
- sometimes very weird. for example:
-
- for ($counter = 0;$counter < $#num;$counter++) {
- $_ = $num[$counter];
- if (/ABC ${endname}DEF${number}/i) { $in = 1; }
- elsif ($in == 1) {
- if (/^\s*ABC /i) { last; }
- elsif (/XYZ\s*MOOF/i) {
- $num[$counter-1] =~ /(^.*\s+)(\w+)(OOF\s*)(\s*)(\-*\d+)(.*$)/i;
- $level = $2;
- $w = &check ($level);
-