Wed, 18 Nov 2026 21:45:15 UTC Log in
Temporarily change the current directory 17.92 KB built 2026-10-16 18:01:31 GMT

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

Dependencies

13 total
Requires11
  • perl(Exporter)
  • perl(constant)
  • perl(if)
  • perl(parent)
  • perl(strict)
  • perl(warnings)
  • perl-libs
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
  • rpmlib(PayloadFilesHavePrefix) <= 4.0-1
  • rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides2
  • perl(Cwd::Guard) = 0.05
  • perl-Cwd-Guard = 0.05-30.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

8
Files 1–8 of 8

Component of

buildroots that installed this RPM
Buildroot descending sort Created State
f45-build-25894-613 2026-10-16 23:44:08 expired
f45-build-24846-606 2026-10-16 21:55:43 expired
Buildroots 1–2 of 2