[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
perl mode
From: |
Philippe Delavalade |
Subject: |
perl mode |
Date: |
Wed, 2 Oct 2013 07:00:52 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi all.
it's my first post on this list, so be kind with my english :-)
I have problems with indentation in perl mode when usign "$'" ; I guess it
comes from the "'"...
Here is a little example :
#!/usr/bin/perl -w
use strict;
$\ = "\n";
my $txt = 'Hello World !';
main
{
if(1)
{
($txt =~ m/Hello /) && (print "$'");
}
print "Bye";
}
exit(0);
If I run the "indent-region" command (after having marked the whole
script", identation is not correct.
I suspect I should add some lines in .emacs but I don't know which are the
right ones...
Thanks in advance for help.
--
Ph. Delavalade
- perl mode,
Philippe Delavalade <=
- Re: perl mode, Damien Wyart, 2013/10/02