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

Paul Howarth <[email protected]> changed:

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



--- Comment #4 from Paul Howarth <[email protected]> ---
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
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to