![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: cwd moduleby jplindstrom (Monsignor) |
on Apr 10, 2008 at 22:31 UTC ( #679582=note: print w/replies, xml ) | Need Help?? |
May I recommend File::chdir (yes, note the case :), which makes it simple to not just get the current dir, but also to change dir. And restore it later by just doing
local $CWD = $new_dir;. /J
In Section
Seekers of Perl Wisdom
|
|