in reply to Conditionally including modules

"use" happens at compile time, "require" happens at run time, so "requrie" is what you want. If the module needs to have things imported, you will need to manually import after the require.