development/libraries

perl-Cwd-Guard - Temporarily change the current directory

Website: http://search.cpan.org/dist/Cwd-Guard/
License: GPL+ or Artistic
Vendor: city-fan.org repo http://www.city-fan.org/ftp/contrib/
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

Packages

perl-Cwd-Guard-0.05-2.fc17.noarch [13 KiB] Changelog by Paul Howarth (2016-08-12):
- BR: perl-generators where available

Listing created by Repoview-0.6.6-13.fc29