Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created June 2, 2013 21:36
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 pmichaud/5695072 to your computer and use it in GitHub Desktop.
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