[Bug 1150113] Review Request: perl-Cwd-Guard - Temporarily change the current directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1150113

Paul Howarth <paul@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |fedora-cvs?



--- Comment #4 from Paul Howarth <paul@xxxxxxxxxxxx> ---
New Package SCM Request
=======================
Package Name: perl-Cwd-Guard
Short Description: Temporarily change the current directory
Upstream URL: http://search.cpan.org/dist/Cwd-Guard/
Owners: pghmcfc
Branches: f19 f20 f21 epel7
InitialCC: perl-sig

Thanks for the review Petr. I'll go for yada yada yada operators:

  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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]