Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Including modules exclusively for testing with ExtUtils::MakeMaker

by Anonymous Monk
on Mar 27, 2015 at 00:44 UTC ( [id://1121474]=note: print w/replies, xml ) Need Help??


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)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1121474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found