Created
May 18, 2009 03:58
-
-
Save tene/113308 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
[sweeks@kweh ~]$ cat Foo.pm | |
module Foo { | |
sub greet($name) is export { | |
say "Hello, $name!" | |
} | |
} | |
[sweeks@kweh ~]$ cat perl6.rb | |
foreign_load 'perl6', 'Foo' | |
['Ruby', 'Perl', 'World'].each { |name| greet name } | |
[sweeks@kweh ~]$ cardinal perl6.rb | |
Hello, Ruby! | |
Hello, Perl! | |
Hello, World! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment