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

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

Re: Perl-mode scanning bug


From: Stefan Monnier
Subject: Re: Perl-mode scanning bug
Date: 17 Oct 2001 10:50:27 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.107

>>>>> "David" == David Allen <address@hidden> writes:
> Typing this code into emacs using perl-mode results in a parenthesis
> mismatch error, despite the fact that it's valid perl syntax:

> if(my $user = ${$self->{'logins'}->{$username}}) {
>    # Whatever...
> } 

Take a look at the commentary at the beginning of perl-mode.el.
It discusses various such shortcomings as well as workarounds.
I think in your case you can add a space between $ and { to get:

  if(my $user = $ {$self->{'logins'}->{$username}}) {


        Stefan



reply via email to

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