Name: | perl-Cwd-Guard |
---|---|
Version: | 0.04 |
Release: | 2.el7 |
Architecture: | noarch |
Group: | Unspecified |
Size: | 23817 |
License: | GPL+ or Artistic |
RPM: | perl-Cwd-Guard-0.04-2.el7.noarch.rpm |
Source RPM: | perl-Cwd-Guard-0.04-2.el7.src.rpm |
Build Date: | Thu Nov 02 2017 |
Build Host: | x86-ol7-builder-01.us.oracle.com |
Vendor: | Oracle America |
URL: | http://search.cpan.org/dist/Cwd-Guard/ |
Summary: | Temporarily change the current directory |
Description: | 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 |