Sometimes (not often), I find that I want to change my namespace dynamically. Typically this is done in a string eval and all code in that namespace needs to be in that string. What I'd like to do is something like this:
{ switch_to_namespace($namespace); $some_class->require; $some_class->import(@list); }
I can just wrap that in an eval, but that loses my compile-time syntax checking. I'd prefer to avoid that.
I assume that this is actually compile time behavior which can't be overridden, but I've been wrong before and I'd be happy to be wrong now.
Cheers,
Ovid
New address of my CGI Course.
In reply to Dynamically Changing Your Namespace by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |