in reply to Learning perl, after years...
in thread Creating Perl5 plugin for Intellij IDEA (Camelcade)
You seem to be paying way too much attention to the line break.
$position is either 1 or 2. $Next->content() is expected to return ';' or '}' when $position is 1 and to return '=>' when $position is 2.
The code is a rather simple array look-up followed by a hash look-up:
my $class = $CURLY_LOOKAHEAD_CLASSES[$position]->{ $Next->content() };
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Learning perl, after years... (deref)
by hurricup (Pilgrim) on May 03, 2015 at 19:55 UTC |