Skip to content

Instantly share code, notes, and snippets.

@tene
Created May 18, 2009 03:58
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 tene/113308 to your computer and use it in GitHub Desktop.
Save tene/113308 to your computer and use it in GitHub Desktop.
[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