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

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

Re: Perl indentation problem?


From: Fernando Dobladez
Subject: Re: Perl indentation problem?
Date: Mon, 26 Nov 2001 09:08:25 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120

Pedro Alves wrote:


Hi. Take a look at the way emacs handles this piece of perl code:

____________________________
while (@vars) {
  ($var, $val) = split("=", shift @vars);

next if $val =~ /^\s*$/; <- ?!?!?!?

$val =~ tr/+/ /;
$val =~ s/%([0-9A-F][0-9A-F])/&hex2dec($1)/ge;
}
____________________________

IMHO, this is not supposed to happen...

Any clues?



No idea, but seems to work OK for me, in both perl-mode and cperl-mode:

______________________
while (@vars) {
  ($var, $val) = split("=", shift @vars);

  next if $val =~ /^\s*$/;

  $val =~ tr/+/ /;
  $val =~ s/%([0-9A-F][0-9A-F])/&hex2dec($1)/ge;
}
_____________________


That's Emacs 21.1.1


Good luck,

Fernando





reply via email to

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