in reply to Best practice for handling subroutines that are conditionally loaded?
Don't. Unconditionally export a constant a sub that does nothing.