in reply to Why does Perl use dynamic scoping?
Just taking the first use of a variable may not be what the coder intends and Larry (in an Apocalpse, if I recall correctly) couldn't find a good heuristic to intuit the intended lexical scope. So you'll end up having to declare your lexicals even in Perl 6.
So for quick and nasty scripts, one-liners and the like, we are left with symbol tabled, dynamically scoped variables. There's no safety but you're less likely to need it.
|
|---|