in reply to Re: Attempting to use $_ in "sub" inside "map" (updated)
in thread Attempting to use $_ in "sub" inside "map"
I'm pretty sure both are correct. I have trouble to imagine closed over variables which are not lexical. (I usually call those global ;-)
Personally I'd use "lexical closure" to disambiguate, if there is another interpretation of "closure" in the context.
The same way we use "file-glob" and "type-glob" to distinguish between glob and the * sigil
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Attempting to use $_ in "sub" inside "map"
by AnomalousMonk (Archbishop) on May 08, 2021 at 09:47 UTC | |
|
Re^3: Attempting to use $_ in "sub" inside "map"
by tobyink (Canon) on May 10, 2021 at 14:30 UTC | |
by LanX (Saint) on May 10, 2021 at 14:40 UTC |