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

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

Re: perl-mode - fix syntax of anonymous sub prototypes


From: Joost Diepenmaat
Subject: Re: perl-mode - fix syntax of anonymous sub prototypes
Date: Sat, 29 Mar 2008 12:23:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Giuliano Procida" <address@hidden> writes:

> Hi.
>
> GNU Emacs 22.1.1 (i386-pc-solaris2.10, X toolkit) of 2008-02-11 on robot
>
> Constructs like this:
>
>     my $del = sub($) {
>         my ($old) = @_;
>         return if not active($old);
>         &$delete_row($old->{$fde_id});
>     };

/slighly related comment.

Just FYI, prototypes on anonymous subs are useless. As in; discarded by
the perl interpreter. I'm actually surprised it's even valid syntax.

Also, I would strongly recommend cperl-mode (which in fact does
recognize the construct) instead of perl-mode.

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/




reply via email to

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