[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

perl mode

From: Philippe Delavalade
Subject: perl mode
Date: Tue, 1 Oct 2013 18:09:43 +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 !';

($txt =~ m/Hello /) && (print "$'");
print "Bye";


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]