Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #56 from donaldh/indir-temp-cwd

Use temp CWD instead of chdir. Avoids LexoticException.
  • Loading branch information...
commit 2259200f9a6148ac91c0d3be56a3c5b11683b907 2 parents 4547e96 + 2c85b0f
Tadeusz Sośnierz authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Panda/Common.pm
4 lib/Panda/Common.pm
View
@@ -6,10 +6,8 @@ sub dirname ($mod as Str) is export {
}
sub indir (Str $where, Callable $what) is export {
- my $old = cwd;
- LEAVE chdir $old;
mkpath $where;
- chdir $where;
+ temp $*CWD = IO::Spec.rel2abs($where);
$what()
}
Please sign in to comment.
Something went wrong with that request. Please try again.