in reply to Perl templates for Emacs?
Original post: (no longer relevant) I don't know the symptoms you had, but what screams at me is that the bare array needs instead to be expressed in list mode by encasing it in round brackets, so that it forms a valid RHS for the list assignment.e.g.:
sub FeetIntact{ my ($self,$shootSomeoneElse) = (@_); # ... }
Update: Oops overkill there - this is only necessary for reading parameters in hash form, e.g.:-
FeetIntact( toe => big, smell => roquefort ); sub FeetIntact{ my %par = (@_); # $par { smell } now has value 'roquefort' }
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl templates for Emacs?
by holli (Abbot) on Jun 30, 2005 at 12:37 UTC | |
|
Re^2: Perl templates for Emacs?
by holli (Abbot) on Jun 30, 2005 at 12:53 UTC | |
by anonymized user 468275 (Curate) on Jun 30, 2005 at 13:07 UTC | |
|
Re^2: Perl templates for Emacs?
by loris (Hermit) on Jun 30, 2005 at 12:42 UTC |