Re:Perl 6 Introduction
by cafard on Saturday November 28, 2015 @09:30AM
(#10641134)
"my" arrived after "local". The former is true lexical scoping, the latter isn't quite.
[ Parent
| on HN ]
Right. As gp says, "local" is dynamic scoping.
It's available as long as the declaration stays on the call stack. It more-or-less allows globals to be temporarily redefined.
Re:Perl 6 Introduction
by DonHopkins on Saturday November 28, 2015 @02:10PM
(#10641998)
Think locally, act globally.