summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-07 17:52:41 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-07 20:14:36 -0800
commit6402d4ee6fab9f5d76a131921ef72d686ad7aac5 (patch)
tree62a96c7939b7ac699cc140a77222b18b5079dbe9 /lib
parent6abbd373e741488741fdb8a7d9b6ef6ae89ed48c (diff)
downloadperl-6402d4ee6fab9f5d76a131921ef72d686ad7aac5.tar.gz
Update B::Deparse for last two commits
Diffstat (limited to 'lib')
-rw-r--r--lib/B/Deparse.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/B/Deparse.pm b/lib/B/Deparse.pm
index d5f0bd58dc..ef22e060ea 100644
--- a/lib/B/Deparse.pm
+++ b/lib/B/Deparse.pm
@@ -2637,8 +2637,10 @@ sub real_concat {
return $self->maybe_parens("$left .$eq $right", $cx, $prec);
}
+sub pp_repeat { maybe_targmy(@_, \&repeat) }
+
# 'x' is weird when the left arg is a list
-sub pp_repeat {
+sub repeat {
my $self = shift;
my($op, $cx) = @_;
my $left = $op->first;
@@ -2830,7 +2832,7 @@ sub pp_substr {
}
maybe_local(@_, listop(@_, "substr"))
}
-sub pp_vec { maybe_local(@_, listop(@_, "vec")) }
+sub pp_vec { maybe_targmy(@_, \&maybe_local, listop(@_, "vec")) }
sub pp_index { maybe_targmy(@_, \&listop, "index") }
sub pp_rindex { maybe_targmy(@_, \&listop, "rindex") }
sub pp_sprintf { maybe_targmy(@_, \&listop, "sprintf") }