Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created July 12, 2011 17:49
Show Gist options
  • Save jnthn/1078526 to your computer and use it in GitHub Desktop.
Save jnthn/1078526 to your computer and use it in GitHub Desktop.
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