Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created September 7, 2013 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/6474908 to your computer and use it in GitHub Desktop.
Save tadzik/6474908 to your computer and use it in GitHub Desktop.
Rakudo/jvm panda blocker
sub indir (Str $where, Callable $what) {
my $old = cwd;
LEAVE chdir $old;
chdir $where;
$what()
}
sub batman {
indir 'foo', {
fail "NO";
};
}
mkdir 'foo' unless 'foo'.IO.d;
my $res = batman;
rmdir 'foo';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment