Install libcwd-guard-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libcwd-guard-perl
Description:
module for temporarily changing working directory (chdir)
Cwd::Guard provides changing the current directory (chdir) using a limited scope. Return to current working directory, if this object destroyed. If failed to chdir, error messages stored to $Gwd::Guard::Error.
Homepage: https://metacpan.org/release/Cwd-Guard
Version: 0.05-1
Section: universe/perl