Skip to content

Instantly share code, notes, and snippets.

@colomon
Created May 10, 2011 18:31
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 colomon/965082 to your computer and use it in GitHub Desktop.
Save colomon/965082 to your computer and use it in GitHub Desktop.
Gcd.pm:
class Gcd does Real {
our multi sub gcd(Gcd $a, Gcd $b) is export(:DEFAULT) {
say "Gcd!";
}
}
demo.pl:
use Gcd;
gcd(Gcd.new(), Gcd.new());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment