[ol8_developer_EPEL] perl-Cwd-Guard-0.05-11.el8.noarch

Name:perl-Cwd-Guard
Version:0.05
Release:11.el8
Architecture:noarch
Group:Unspecified
Size:23871
License:GPL+ or Artistic
RPM: perl-Cwd-Guard-0.05-11.el8.noarch.rpm
Source RPM: perl-Cwd-Guard-0.05-11.el8.src.rpm
Build Date:Sat Nov 02 2019
Build Host:jenkins-10-147-72-125-d2ac1df6-acc4-4fcb-b0d4-e6c082c4d687.appad1iad.osdevelopmeniad.oraclevcn.com
Vendor:Oracle America
URL:https://metacpan.org/release/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

Changelog (Show File list) (Show related packages)