summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-08 14:19:34 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-09-13 01:25:35 -0700
commit7aae02997ac3a49c1ab348041cff6989a1231075 (patch)
tree5477bd7c8c4c61ac6ea7d2227add3da88e177789 /pp.c
parent36447869006f54292e2cf85a2390dfaea3e74156 (diff)
downloadperl-7aae02997ac3a49c1ab348041cff6989a1231075.tar.gz
Use diag_listed_as two suppress two diag.t failures
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 2dd0fe8d9a..cb6fe8396a 100644
--- a/pp.c
+++ b/pp.c
@@ -4361,6 +4361,7 @@ PP(pp_kvaslice)
const I32 flags = is_lvalue_sub();
if (flags) {
if (!(flags & OPpENTERSUB_INARGS))
+ /* diag_listed_as: Can't modify %s in %s */
Perl_croak(aTHX_ "Can't modify index/value array slice in list assignment");
lval = flags;
}
@@ -4808,6 +4809,7 @@ PP(pp_kvhslice)
const I32 flags = is_lvalue_sub();
if (flags) {
if (!(flags & OPpENTERSUB_INARGS))
+ /* diag_listed_as: Can't modify %s in %s */
Perl_croak(aTHX_ "Can't modify key/value hash slice in list assignment");
lval = flags;
}