Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2010 21:44
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 anonymous/468690 to your computer and use it in GitHub Desktop.
Save anonymous/468690 to your computer and use it in GitHub Desktop.
pmichaud@orange:~/rakday$ cat Foo.pm
class Foo;
method xyz($name) { say ">> $name" }
pmichaud@orange:~/rakday$ cat x
my $class = "Foo"; eval("use $class"); "$class".new.xyz("hello");
pmichaud@orange:~/rakday$ ./perl6 x
>> hello
pmichaud@orange:~/rakday$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment