in reply to Class::Traits not happy with multiple packages per file
This has to do with how Class::Trait is loading the Trait, it is trying to load the package with a require hack.
It is fairly a trivial patch to fix the &_load_trait function in Class::Trait to make it check for the package existence first, and *then* try to require it. You can get the package existince test from Class::Inspector.
|
|---|