Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created May 14, 2009 21:17
Show Gist options
  • Save pmichaud/111930 to your computer and use it in GitHub Desktop.
Save pmichaud/111930 to your computer and use it in GitHub Desktop.
$ cat Foo.pm
module Foo {
multi sub infix:<±>($x, $y) is export(:DEFAULT) { 1 }
}
$ cat test.pl
use Foo;
say 2 ± 3;
$ ./perl6 test.pl
1
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment