summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-17 09:41:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-17 09:41:10 +0000
commitc6e96bcb406bc8b8d8610606459ff606ad6883aa (patch)
tree111423f8261eb6fc4292e4f06c315bdd53131d12 /op.c
parenta99e4ac224ca891463a7704e48b83906ece3bb7c (diff)
downloadperl-c6e96bcb406bc8b8d8610606459ff606ad6883aa.tar.gz
allow C<sort $coderef @foo>
p4raw-id: //depot/perl@2246
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 e52aa4f998..a64b435761 100644
--- a/op.c
+++ b/op.c
@@ -5053,6 +5053,8 @@ ck_sort(OP *o)
kid->op_next = k;
o->op_flags |= OPf_SPECIAL;
}
+ else if (kid->op_type == OP_RV2SV || kid->op_type == OP_PADSV)
+ null(cLISTOPo->op_first->op_sibling);
}
return o;