CORE::chdir Cwd::Guard can change the current directory (chdir) using a limited scope. WWW: https://metacpan.org/release/Cwd-Guard