Created
May 14, 2009 21:17
-
-
Save pmichaud/111930 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
$ 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