Created
July 12, 2011 17:49
-
-
Save jnthn/1078526 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
C:\Consulting\rakudo>type b.p6 | |
sub foo($x) { say("hi $x"); } | |
foo("from run time"); | |
CHECK { foo("from check time!") } | |
BEGIN { foo("from begin time!") } | |
C:\Consulting\rakudo>perl6 b.p6 | |
hi from begin time! | |
hi from check time! | |
hi from run time | |
C:\Consulting\rakudo>perl6 -e "BEGIN { say 'yes, really BEGIN!' }; omg!!!fail" | |
yes, really BEGIN! | |
Confused at line 1, near "omg!!!fail" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment