help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Change line continuation behavior in cperl-mode


From: Alex
Subject: Re: Change line continuation behavior in cperl-mode
Date: Mon, 16 Mar 2009 09:08:44 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Xah Lee wrote:

I tried this:


#perl
$some = "sme" .
    "what" .
    "that" .
    "and";
print $some;

but it seems to align? i'm not aware that perl line needs a dot to
signify continue? can you give a example?

I'm having the same problem as Steve mentioned and I also noticed that sometimes it seems to work. Most importantly, I get the staircase effect inside a sub, but not outside.
Example:

my $s = "this"
    . " string"
    . " is"
    . " long";

sub bus {
    my $s = "this"
        . " string"
            . " goes on"
                . " and on";
}

--
Alex
domain: iki dot fi
localpart: alext
email: localpart at domain


reply via email to

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