I was baffled at first, but you're right, the OP wasn't using proper indentation.
Worth noting that "newer" Perl versions have lexical subs via my sub name {...} constructs.
See perlsub#Lexical-Subroutines
Personally I'm still stuck to my $code_ref = sub {...} approaches.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^3: parse lisp style config
by LanX
in thread parse lisp style config
by vincentaxhe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |