3 ms·
In the example, the effects of "use Jolly" are restricted to the enclosing scope, e.g. use lib <.>; { use Jolly; # inner scope } # TODO: this does
by bdmatatu 9y ago
In the example, the effects of "use Jolly" are restricted to the enclosing scope, e.g.
use lib <.>;
{ use Jolly;
# inner scope
}
# TODO: this does not throw an error
- richard_todd 9y agoI don’t have a problem with that. It can still be hard if you also want to “use Holly;” which wants some incompatible syntax hack, but at least it is lexically contained. I think the main reason this stuff tends to work out ok is that it’s so rare (in practice there aren’t enough Holly’s and Jolly’s in play so you don’t ever need to use both in the same scope).