moez507 has asked for the wisdom of the Perl Monks concerning the following question:

I am facing a really weird issue.

I am running the command:
perl -Ilib Run_Sanity_Test.pl

However it cant find a module - T2/Logger.pm

However , it is there in the lib folder in the same directory :(

Replies are listed 'Best First'.
Re: -I flag being ignored
by Anonymous Monk on Mar 25, 2014 at 15:48 UTC

    Can you prove it?

    Works for me

    $ md canYouProveIt $ cd canYouProveIt $ md lib $ md lib\You $ echo package You::Prove; 1; > lib\You\Prove.pm $ perl -Ilib -MYou::Prove -le " print for %INC " You/Prove.pm lib/You/Prove.pm
    Simple Module Tutorial
Re: -I flag being ignored
by Bloodnok (Vicar) on Mar 25, 2014 at 17:09 UTC
    It looks as though you should mkdir lib/T2 and move your module file (Logger.pm) into that (new) directory.

    A user level that continues to overstate my experience :-))
      That seems to work ! Do you know why this is ?
      Also , something that might be related is that the size of my 'lib' directory is 0 , even though there is stuff inside.
      Also, adding the lib to the PERL5LIB variable did work . Even before I made this new directory.
Re: -I flag being ignored
by Arunbear (Prior) on Mar 25, 2014 at 16:01 UTC
    Is Logger.pm directly in lib/ or in lib/T2/ ?
      Its in lib/T2
        And what is pwd?