Description
Perl code can temporarily switch to another working directory and automatically return when the scope ends. This helps build scripts, tests, and file-processing tools avoid leaving the process in the wrong directory.
It is a small filesystem helper. Applications should still validate target directories, especially when paths come from user input or external archives.