develooper Front page | perl.perl5.porters | Postings from July 2004

Re: Perl cannot cope with mixed LineEnds (bug IMHO)

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
July 30, 2004 02:11
Subject:
Re: Perl cannot cope with mixed LineEnds (bug IMHO)
Message ID:
20040730091114.GA3852@efn.org
On Thu, Jul 29, 2004 at 11:11:53PM +0200, Richard Jelinek <rj@petamem.com> wrote:
> Well folding is great and we are used to it. Unfortunatedly, this only works,
> if the perl source code is kept in ISO-8859 encoding. As soon as the
> source code is UTF-8, folding.el still works like a charm, but Perl
> won't. It simply doesn't see the folded sections anymore.
> 
> Seems the tokenizer/parser of perl ignores/oversees lines that are
> after such an alternate line-end code.

Sounds weird, unless its using just a CR preceded by a # comment, which
would indeed make the next "line" be ignored.

Can you place these 4 lines at the very beginning of your file, run it
and save the output, and send a portion that has the broken folding?

use Data::Dumper;
$Data::Dumper::Useqq = 1;
print Dumper <DATA>;
__DATA__

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About