in reply to Re: Build.PL usage during module authoring
in thread Build.PL usage during module authoring

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

john@makemake:~/dev/HTML-EntityReference$ perl Build Building HTML-EntityReference john@makemake:~/dev/HTML-EntityReference$ ./Build Building HTML-EntityReference john@makemake:~/dev/HTML-EntityReference$ ./Build test t/00-load.t ...... 1/1 # Failed test 'use HTML::EntityReference;' # at t/00-load.t line 6. # Tried to use 'HTML::EntityReference'. # Error: Can't locate HTML/Entity-HTML5_draft.inc.pl in @INC (@IN +C contains: /var/content/dev/HTML-EntityReference/blib/lib /var/conte +nt/dev/HTML-EntityReference/blib/arch /etc/perl /usr/local/lib/perl/5 +.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /u +sr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /v +ar/content/dev/HTML-EntityReference/blib/lib/HTML/EntityReference.pm +line 345. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. Bailout called. Further testing stopped: # Testing HTML::EntityReference 0.010, Perl 5.010001, /usr/bin/perl # Looks like you failed 1 test of 1. FAILED--Further testing stopped. john@makemake:~/dev/HTML-EntityReference$
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".

Replies are listed 'Best First'.
Re^3: Build.PL usage during module authoring
by Anonymous Monk on May 13, 2011 at 02:39 UTC
      >> Oh, and now is a good time to review How do I post a question effectively? :)

      I did say “But I added another file in the same directory as the .pm file, that is "required" by the code at run time”. I did not say that I was adding another module to the distribution; it was "some file", and although I didn't spell it out, it should have been clear that whatever it was, it was not a .pm file.

      So maybe you can stop hiding behind Anonymous, and perhaps read a little more closely and answer what was asked. Or be a little more polite with pointing out that the root of the problem wasn't as explicit as it could have been (after all, had I know it was significant I would have known what to look for!!) rather than treating a 10-year PM veteran like a noob.