[ol9_developer_EPEL] perl-Cwd-Guard-0.05-12.el9.noarch

Name:perl-Cwd-Guard
Version:0.05
Release:12.el9
Architecture:noarch
Group:Unspecified
Size:23871
License:GPL+ or Artistic
RPM: perl-Cwd-Guard-0.05-12.el9.noarch.rpm
Source RPM: perl-Cwd-Guard-0.05-12.el9.src.rpm
Build Date:Thu Feb 03 2022
Build Host:build-ol9-x86_64.oracle.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)