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

I'm back with another cluestick whack request. Given the shown @INC and file system layout what is preventing my program from finding the referenced modules?

D:\Projects\Heatmap\FraudDev>bin\app.pl Can't locate EMPFraud/Lookup.pm # what? in @INC # split into lines for readabi +lity (@INC contains: D:\Projects\Heatmap\FraudDev\lib C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib . ) at D:\Projects\Heatmap\FraudDev\bin\app.pl line 4. BEGIN failed--compilation aborted at D:\Projects\Heatmap\FraudDev\bin\app.pl line 4. D:\Projects\Heatmap\FraudDev>dir "lib\EMPFruad" Directory of D:\Projects\Heatmap\FraudDev\lib\EMPFruad 05/09/2012 03:20 PM 5,086 Lookup.pm # here it isn't? +? 05/09/2012 03:21 PM 11,563 MapUtils.pm 3 File(s) 20,615 bytes 2 Dir(s) 89,064,800,256 bytes free D:\Projects\Heatmap\FraudDev>
A similarly constructed tree and test modules on a Linux system work as expected. What am I missing?


Be Appropriate && Follow Your Curiosity

Replies are listed 'Best First'.
Re: Module Include under Strawberry Perl
by marto (Cardinal) on May 10, 2012 at 12:06 UTC
    EMPFraud/Lookup.pm
    D:\Projects\Heatmap\FraudDev\lib\EMPFruad

    EMPFraud is different from EMPFruad.

      :-)

      I find this thread very amusing. Here someone knows Perl, very well (to know @INC). Yet only a simple spelling mistake tripped them up. A non-Perl skill. Happens to everyone.

        "Happens to everyone."

        Exactly. Often a fresh pair of eyes can spot the problem quickly.

Re: Module Include under Strawberry Perl
by mikeraz (Friar) on May 11, 2012 at 19:35 UTC

    I think I'm getting stupid spoiled. No red squiggle underlined the term when I typed "mkdir EMPFruad". If it appeared without the red squiggle it must be spelled correctly. ;)


    Be Appropriate && Follow Your Curiosity