I may not understand the question, but it seems like you want to write an import() sub. If I missed it, read the source for Memoize to see some pure magic you might want to copy, emulate, or borrow.
-Paul
Comment on Re: Executing use'd/require'd/base module code *after* use'r/require'r/child is compiled?