in reply to Re: Makefile.PL Question
in thread Makefile.PL Question

Update: Darn it, I don't think this will work either, because File::Copy::Recursive is not in corelist, and I haven't found anything else in core that can copy/move directories (yet). I'd still like to know if this fixes your issue though, just to satisfy my own curiosity. End update

I'm only assuming that these issues are related to the t/ directory not being in the right place, but I'm not sure. Instead of my earlier note about using symlink() which is not cross-platform, can you try to copy the directory? (tested on nix and win):

use ExtUtils::MakeMaker; use File::Copy::Recursive qw(dircopy); dircopy('apps', 't'); WriteMakefile ( 'PL_FILES' => {}, 'EXE_FILES' => [], 'NAME' => 'Devel::Examine::Subs', 'INSTALLDIRS' => 'site', ...

Does that help?

Replies are listed 'Best First'.
Re^3: Makefile.PL Question
by 1nickt (Canon) on Sep 04, 2015 at 16:30 UTC

    Hi stevieb, you can move (rename) directories with File::Copy:

    #!/usr/bin/perl use strict; use warnings; use File::Copy 'mv'; mkdir( 'Project/src' ) or die $!; mv('Project/lib', 'Project/src/lib' ) or die $!; mv('Project/t', 'Project/src/apps' ) or die $!; __END__
    $ ls -lR Project total 0 -rw-r--r-- 1 nick staff 0 Sep 4 09:20 Makefile.PL drwxr-xr-x 3 nick staff 102 Sep 4 09:21 lib drwxr-xr-x 3 nick staff 102 Sep 4 09:21 t Project/lib: total 0 -rw-r--r-- 1 nick staff 0 Sep 4 09:21 Modul.pm Project/t: total 0 -rw-r--r-- 1 nick staff 0 Sep 4 09:21 test $
    $ perl 1141027.pl $
    $ ls -lR Project total 0 -rw-r--r-- 1 nick staff 0 Sep 4 09:20 Makefile.PL drwxr-xr-x 4 nick staff 136 Sep 4 09:26 src Project/src: total 0 drwxr-xr-x 3 nick staff 102 Sep 4 09:21 apps drwxr-xr-x 3 nick staff 102 Sep 4 09:21 lib Project/src/apps: total 0 -rw-r--r-- 1 nick staff 0 Sep 4 09:21 test Project/src/lib: total 0 -rw-r--r-- 1 nick staff 0 Sep 4 09:21 Modul.pm
    The way forward always starts with a minimal test.