Last active
October 12, 2015 16:13
-
-
Save awwaiid/bc3e4f8d9352e35bb531 to your computer and use it in GitHub Desktop.
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
awwaiid@misao:~/tmp/modtest$ cat -n MyModule.pm6 | |
1 module MyModule { | |
2 sub hello { | |
3 say "Hello!"; | |
4 } | |
5 } | |
6 | |
awwaiid@misao:~/tmp/modtest$ cat -n demo.p6 | |
1 #!/usr/bin/env perl6 | |
2 | |
3 use lib '.'; | |
4 use MyModule; | |
5 | |
6 MyModule::hello; | |
7 | |
awwaiid@misao:~/tmp/modtest$ ./demo.p6 | |
Could not find symbol '&hello' | |
in block <unit> at ./demo.p6:6 | |
Actually thrown at: | |
in block <unit> at ./demo.p6:6 |
awwaiid@misao:~/tmp/modtest$ perl6 -v
This is perl6 version 2015.09 built on MoarVM version 2015.09
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is https://perl6advent.wordpress.com/2009/12/12/day-12-modules-and-exporting/ outdated?