[Top][All Lists]

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

Re: perl mode

From: Andreas Röhler
Subject: Re: perl mode
Date: Wed, 02 Oct 2013 19:10:12 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

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 !';

($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.

with cperl-mode indent-region default delivers this - see attachment

Attachment: cperl.png
Description: PNG image

reply via email to

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