On Tue, Sep 20, 2005 at 07:50:03AM -0400, James E Keenan wrote: > >I think you misunderstand. The problem is not using relative paths in > >chdir. > >The problem is that @INC contains a relative path. So if you change > >directories, the ./blib/lib entry in @INC is no longer valid.
I forgot to give a solution. Basically, either require every module before chdir'ing, or run @INC through File::Spec->rel2abs(). -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern Life is like a sewer - what you get out of it depends on what you put into it. - Tom Lehrer