SPUG: Change a namespace after loading?

Yitzchak Scott-Thoennes sthoenna at efn.org
Wed Apr 11 15:51:51 PDT 2007

On Wed, April 11, 2007 3:44 pm, Bill Warner wrote:
> I want to change the namespace of a class after it's been loaded. Worse,
> I
> want to continue to use the original namespace, but fill it with new code
> that might refer to the old code in the changed namespace. Wore still, I'd
> rather not edit the old code at all. I want to import it as I've always
> done, but into a new namespace.
> Is there technique or a module for this purpose?

There are several things you can do, but all with some limitation or
drawback.  Can you explain what you are really trying to get done?
(See http://perlmonks.org/?node=XY+Problem.) There's likely a better

More information about the spug-list mailing list