in reply to Creating packages on the fly

Could perhaps Package::Generator be of assitance here? I admit when I first saw this module I wasn't too sure of its use, but it could be that it is an answer to your query (speaking of synchronicity)!

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law