Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created November 9, 2009 17:57
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/230137 to your computer and use it in GitHub Desktop.
Save pmichaud/230137 to your computer and use it in GitHub Desktop.
$ cat x
END { say 'end 1'; }
INIT { say 'init 1'; }
CHECK { say 'check 1'; }
CHECK { say 'check 2'; }
INIT { say 'init 2'; }
END { say 'end 2'; }
INIT { say 'init 3'; }
END { say 'end 3'; }
CHECK { say 'check 3'; }
$ ./perl6 x
check 3
check 2
check 1
init 1
init 2
init 3
end 3
end 2
end 1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment