lexical-scope
Does my $_; do anything if $_ is implied
I think the answer is yes but I just want to make sure. so if I have sub something { my $_; my @array = ...;[详细]
2023-01-10 11:27 分类:问答Lexically importing useful functions in a big script
Sometimes I need a useful utility function, like List::Util::max in the middle of a large program that does lots of stuff. So if I do[详细]
2023-01-03 22:31 分类:问答How is Lexical Scoping implemented? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2022-12-21 20:13 分类:问答Does the inner function know that a variable is inside the temporal dead zone before searching further through the scope chain?
function b() { function a() { console.log(x); } a(); const x = 10; } const x = 20; b() If I understand lexical scoping and execution context correctly, when function a() is invoked, it should ha[详细]
2022-12-07 21:10 分类:问答