Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • It does require a makefile, no?

    I don't have that for my applications. A typical directory structure looks like this:

    /project
      /bin
      /lib
        /My
          Module.pm
        /The
          /Other
             Mod.pm
      /t
        My-Module.t
        The-Other-Mod.t

    The .t files contain a 'use lib "lib", "../lib";' to point to the module directory.

    Like chromatic I usually just type perl t/FILENAME to run a certain test file, but I

    • by Matts (1087) on 2005.01.12 12:48 (#37411) Journal
      You would have one Makefile.PL with a very simple contents:
      use ExtUtils::MakeMaker;
      WriteMakefile(
          NAME => 'projectname',
          AUTHOR => 'me',
          VERSION => '1.0',
          ABSTRACT => 'this is my project',
      );
      You can change a few of those to extract better info, but you don't really need it.

      ExtUtils::MakeMaker will find all your .pm files under a lib/ directory.