http://qs1969.pair.com?node_id=847300


in reply to loading modules using 'use'

When you use a module, it not only gets compiled but also executed before the program that uses the module runs. So the require is executed at runtime of module A which happens at compile time of the program.
Btw. you may want to get a little more creative with your package names. A may be fine, but B is a core module.