Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2016 13:36
Show Gist options
  • Save anonymous/c090b60c608ad6d17d562eadcbf0391b to your computer and use it in GitHub Desktop.
Save anonymous/c090b60c608ad6d17d562eadcbf0391b to your computer and use it in GitHub Desktop.
[jdv@wieldy ~]$ cat Foo.pm6
module Foo {
sub bar { say "baz" }
}
[jdv@wieldy ~]$ cat test.pl6
my $v = "Foo";
require ::($v);
my $m = ::($v);
$m::bar();
[jdv@wieldy ~]$ perl6 -I. test.pl6
Cannot find method 'Any' on object of type List
in block <unit> at test.pl6 line 4
[jdv@wieldy ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment