http://qs321.pair.com?node_id=594085


in reply to Re^2: Problem using -I argument with Perl
in thread Problem using -I argument with Perl

With the line
use modules::test-module;
you are trying to use

C:\perl-programs\modules\modules\test-module.pm

I suspect you mean to use

C:\perl-programs\modules\test-module.pm

For that, the correct syntax is:
use test-module;
because you directory C:\perl-programs\modules is already in the INC path.