Jonathan Swartz wrote: > 2) I have to compute the right exception paths. Doing "use lib > qw(blib/lib blib/arch)" as you suggest would only work if the tests were > run from the main directory. e.g. If I'm in the t/ directory and do > "perl -I../lib foo.t", as I do sometimes, it ought to work as well.
Patient: Doctor doctor, it hurts when I do this! Doctor: Then don't do that. Yes, you can beef up your tests so that they can be run from various directories. You can use FindBin and File::Spec->rel2abs and all sorts of stuff to that end. I believe blib.pm takes care of making sure @INC works. But really the simplest thing is to get into the habit of running tests from the source directory and no where else. -- 7. Not allowed to add "In accordance with the prophesy" to the end of answers I give to a question an officer asks me. -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/