On 29/01/2008, Michael G Schwern <[EMAIL PROTECTED]> wrote: > Eric Wilhelm wrote: > > Hi Ken, > > > > I noticed some traffic in the commits and realized I had this stale > > patch laying around. > > > > I see there are still quite a few chdir()s in the test suite and thought > > this might be a good way to keep things a little more organized. > > > > I think I just hadn't checked it in because the method names are so > > corny (but maybe I just hadn't had a chance to really test it yet.) > > Yes, they are. :P > > There's File::pushd and File::chdir to do this sort of thing and more > elegantly. They also nest. > > File::pushd is simple and a no-frills version can be cut & pasted into > Module::Build. I prefer the descriptive local_chdir() over the very Unixy and > cryptic pushd().
FYI: Theres nothing unixy about pushd, its been on windows computers for years (it dates back to CED and PCED on Dos 3 iirc). And is in fact often the prefered way to cd on windows boxes because it allows you to switch volumes using the same syntax that you switch directories with, something that cd doesnt allow you to do. cheers, Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"