Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add infix &&=, += and *=
  • Loading branch information
FROGGS committed May 22, 2013
1 parent 07924e6 commit fa15468
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Perl5/Terms.pm
Expand Up @@ -92,6 +92,9 @@ multi sub undef($a is rw) is export { undefine $a; Nil }
multi infix:<P5~>(\a = '') is export { a.P5Str }
multi infix:<P5~>(\a, \b) is export { a.P5Str ~ b.P5Str }
multi infix:<||=>(\a, \b) is export { a = b unless a }
multi infix:<&&=>(\a, \b) is export { a = b if a }
multi infix:<+=> (\a, \b) is export { a = a + b }
multi infix:<*=> (\a, \b) is export { a = a * b }

sub say(*@a) is export { @a.P5Str.say }; # XXX $*MAIN eq 'Perl5' ?? @a.P5Str.say !! @a.say

Expand Down

0 comments on commit fa15468

Please sign in to comment.