Am 02.10.2013 07:00, schrieb Philippe Delavalade: > 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. > with cperl-mode indent-region default delivers this - see attachment