Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 790df69f9f2c83ca8002b63c62e6e4b9

perl-Cwd-Guard-0.04-2.fc20.noarch.rpm

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

Sources packages:

Other version of this rpm: