John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:

I used module-starter to create the structure. My initial code is working.

But I added another file in the same directory as the .pm file, that is "required" by the code at run time. The code is located along the lines of in MyProject/lib/Path/Name.pm.

The error is that the file is not found, and it's looking in MyProject/blib/lib.

I added the file to the MANIFEST. The basic instructions from the doc page is:

perl Build.PL ./Build ./Build test ./Build install
So I tried running Build (without any argument) again, and it didn't do anything. Now ./Build test has been enough to re-run as I make changes to my .pm file, so it knows to copy that normally.

Can someone fill me in on what's (not) going on?

Replies are listed 'Best First'.
Re: Build.PL usage during module authoring
by Anonymous Monk on May 12, 2011 at 14:29 UTC
    Can someone fill me in on what's (not) going on?

    I say, someone is playing a practical joke on you, they're remote controlling your terminal :)

    shell commands

    shell session

      All I got out of that was that you run perl Build again.

      I can delete blib, and running perl Build will make it reappear. It contains the main .pm file, but not the other files I have in the original lib directory, even though the one I'm interested in is named in the Manifest.

      Maybe it only copies files with a .pm extension? Your example added another module to the tree, not an internal file that would be "required".