Created
May 15, 2013 15:48
-
-
Save perlpilot/5584994 to your computer and use it in GitHub Desktop.
Example of Rakudo END phasers running out of order.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/duff/tmp | |
➤ cat foo | |
use v6; | |
END { say "tres"; } | |
use Foo; | |
END { say "uno"; } | |
/home/duff/tmp | |
➤ cat Foo.pm | |
module Foo; | |
END { say "dos" } | |
/home/duff/tmp | |
➤ perl6 -I. foo | |
uno | |
tres | |
dos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment