On Fri, Jul 08, 2005 at 11:17:44PM -0400, James E Keenan wrote:
> One other curiosum:  As a result of my Phalanx work, I've gotten in the 
> habit of using File::Temp to create 'anonymous' directories and files in 
> which to conduct testing.  I tried that here:
> 
>     my $tdir = tempdir( CLEANUP => 1);
>     ok(chdir $tdir, 'changed to temp directory for testing');
> 
> but, once again, 'blib/' couldn't be located.  So I had to resort to 
> manually constructing, populating and cleaning up a 'tmp/' directory at 
> the same level as 'blib/' or 't/'.

Since you moved down a directory its ../blib.  To simplify things you're
best of using an absolute path to blib.  Use File::Spec->rel2abs to get
one.


-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern
Don't try the paranormal until you know what's normal.
        -- "Lords and Ladies" by Terry Prachett

Reply via email to