Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added (forgotten) overload.pm
  • Loading branch information
FROGGS committed Jun 15, 2013
1 parent 79e5ea5 commit cc04ca9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/Perl5/overload.pm
@@ -0,0 +1,21 @@

use v6.0.0;

# http://perldoc.perl.org/overload.html

sub EXPORT(*@ops) {
my %o;
for @ops -> $k, $v {
my $sub := $v ~~ Str
?? ::($v)
!! $v;
given $k {
when '""' { %o{'&prefix:<P5~>'} := $sub; }
}
}
%o
}

module overload {

}

0 comments on commit cc04ca9

Please sign in to comment.