Temporarily change the current directory
Cwd::Guard can change the current directory (chdir) using a limited scope. use Cwd::Guard qw/cwd_guard/; use Cwd; my $dir = getcwd; MYBLOCK: { my $guard = cwd_guard('/tmp/xxxxx') or die "failed chdir: $Cwd::Guard::Error"; ... # chdir to /tmp/xxxxx } ... # back to $dir
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 0.05-17.fc35 | - |
Fedora 35 | 0.05-17.fc35 | - |
Fedora 34 | 0.05-15.fc34 | - |
EPEL 9 | 0.05-12.el9 | - |
EPEL 8 | 0.05-11.el8 | - |
EPEL 7 | 0.04-2.el7 | - |
You can contact the maintainers of this package via email at
perl-Cwd-Guard dash maintainers at fedoraproject dot org
.