Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created June 2, 2013 21:36
Show Gist options
  • Select an option

  • Save pmichaud/5695072 to your computer and use it in GitHub Desktop.

Select an option

Save pmichaud/5695072 to your computer and use it in GitHub Desktop.
sub foo {
state @ENDS;
my $foo = 'foo';
mkdir $foo;
@ENDS.push: { rmdir $foo };
END { .() for @ENDS }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment