Description
Perl code can change the current working directory with a scoped interface that is easier to restore correctly. This helps scripts and tests perform work in another directory without leaving global state changed by accident.
It is a developer helper for filesystem code. Applications should validate target directories when paths come from users or external input.