> 
> Now after looking at namespace::clean I came up with a variation that limits 
> imports to its enclosing scope:
> 
>     package Foo;
>     # no traces of blessed exist
> 
>     sub uses_blessed {
>          use namespace::local;
>          use Scalar::Util qw(blessed);
> 
>          blessed ($x); # ok
>          Foo->blessed; # nope, no such method
>     };
> 
>     # no traces of blessed exist
> 
> See more at http://prepan.org/module/nYiS6m8kTir
> 
> However, I doubt about he name. Is it clear enough? Is it likely to clash 
> with something else?

I can only think of namespace::block, namespace::scope or namespace::local, and 
of those
namespace::local sounds best to me.

Reply via email to