summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-06-01 15:55:55 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-06-01 15:55:55 +0000
commit58a40671cc13fcd5c38641be59cb1e7f87a5e905 (patch)
treeb6d23c1e76d37acc587a38f4df22b2d2570cef5a /op.c
parentaac3bd0d3f3346ed211dd14976002014858cc553 (diff)
downloadperl-58a40671cc13fcd5c38641be59cb1e7f87a5e905.tar.gz
change#3447 didn't do enough to exempt Foo->bar(qw/.../) from
strict 'subs' p4raw-link: @3447 on //depot/perl: 7a52d87a7fbc7848e6b3e9e96db52d4070212cca p4raw-id: //depot/perl@3514
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/op.c b/op.c
index c1c6066568..3914245703 100644
--- a/op.c
+++ b/op.c
@@ -5381,6 +5381,11 @@ ck_subr(OP *o)
else if (cvop->op_type == OP_METHOD) {
if (o2->op_type == OP_CONST)
o2->op_private &= ~OPpCONST_STRICT;
+ else if (o2->op_type == OP_LIST) {
+ OP *o = ((UNOP*)o2)->op_first->op_sibling;
+ if (o && o->op_type == OP_CONST)
+ o->op_private &= ~OPpCONST_STRICT;
+ }
}
o->op_private |= (PL_hints & HINT_STRICT_REFS);
if (PERLDB_SUB && PL_curstash != PL_debstash)