in reply to Re^2: Including modules exclusively for testing with ExtUtils::MakeMaker
in thread Including modules exclusively for testing with ExtUtils::MakeMaker

*cough* in case its run as   perl DesignPatterns-Perl/t/101-abstract-factory.t

you could instead write

use File::FindLib 'lib';

or

use FindBin qw($Bin); use lib "$Bin/lib";

Replies are listed 'Best First'.
Re^4: Including modules exclusively for testing with ExtUtils::MakeMaker
by jeffa (Bishop) on Mar 27, 2015 at 15:55 UTC

    Thanks for pointing that out. I use FindBin from time to time, mostly when i write code that others will be using. In this case, i always run my tests like so: (from the DesignPatterns-Perl dir)

    prove -lrj4 
    

    Additionally, make test works "right out of the box":

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)