Skip to content

Instantly share code, notes, and snippets.

@awwaiid
Last active October 12, 2015 16:13
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 awwaiid/bc3e4f8d9352e35bb531 to your computer and use it in GitHub Desktop.
Save awwaiid/bc3e4f8d9352e35bb531 to your computer and use it in GitHub Desktop.
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
Copy link
Author

awwaiid commented Oct 12, 2015

@awwaiid
Copy link
Author

awwaiid commented Oct 12, 2015

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