CORE::chdir Cwd::Guard can change the current directory (chdir) using a limited scope. WWW: http://search.cpan.org/dist/Cwd-Guard/