summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@engin.umich.edu>1996-09-04 02:54:56 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-09-04 02:54:56 +0000
commit58e0a6aef843ff1011481f826c2a83b86bc9e67a (patch)
tree4d3657d456e0e76435a341feda756e3c551f8a46 /op.c
parentd8d253f04ead39466658b138fa78f1ec8e7fc42a (diff)
downloadperl-58e0a6aef843ff1011481f826c2a83b86bc9e67a.tar.gz
Re: \ ( @array ) busted for lexical @array (once more)
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.c b/op.c
index 9ee7e292bf..b992fdef6f 100644
--- a/op.c
+++ b/op.c
@@ -997,6 +997,8 @@ I32 type;
case OP_PADAV:
case OP_PADHV:
modcount = 10000;
+ if (type == OP_REFGEN && op->op_flags & OPf_PARENS)
+ return op; /* Treat \(@foo) like ordinary list. */
/* FALL THROUGH */
case OP_PADSV:
modcount++;