in reply to Can't locate Modules/test.pm in @INC

use happens at compile-time, before your push is executed. Put the code that sets $SOURCE_ROOT and the push in a BEGIN block so it is takes effect before the use.
  • Comment on Re: Can't locate Modules/test.pm in @INC