in reply to How do I test a script that doesn't have a .pl extension

Hi, works for me. try putting the path to the file in the require ie...
require '/path/to/file/';

Replies are listed 'Best First'.
Re^2: How do I test a script that doesn't have a .pl extension
by ten8ciousb (Novice) on Nov 02, 2012 at 19:45 UTC
    yes require 'foo' works, but require_ok(foo) fails. that is what threw me.
    I'm trying to add a suite of tests that can go from server to server, OS to OS. the full path will not always be the same. and the tests are not all at the same directory level.
    I am actually using a BEGIN block which finds a common ancestor directory and then builds the lib path from there.
    further testing has shown that even if foo is in the test directory, require_ok(foo) doesn't work