It was in main::. In the caller. Why would a module rely on the calling script to provide its internal functions? That's no good. I moved the function into the module where it should be. The problem becomes extremely evident when you Precompile (as you should).