summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-22 06:12:50 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-22 06:12:50 +0000
commit386acf993e4765f33c76310e325b49bb66186a57 (patch)
tree3706042bb1f0ac51e04935f4e7f7478798b612e5
parentd9b182a2f420a1c4f024131a241f41b0a4ceb26e (diff)
downloadperl-386acf993e4765f33c76310e325b49bb66186a57.tar.gz
make $ prototype to accept THREADSVs
p4raw-id: //depot/perl@1623
-rw-r--r--op.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/op.c b/op.c
index b2169dcda5..fc2e7da461 100644
--- a/op.c
+++ b/op.c
@@ -4827,8 +4827,12 @@ ck_subr(OP *o)
bad_type(arg, "sub", gv_ename(namegv), o2);
goto wrapref;
case '$':
- if (o2->op_type != OP_RV2SV && o2->op_type != OP_PADSV)
+ if (o2->op_type != OP_RV2SV
+ && o2->op_type != OP_PADSV
+ && o2->op_type != OP_THREADSV)
+ {
bad_type(arg, "scalar", gv_ename(namegv), o2);
+ }
goto wrapref;
case '@':
if (o2->op_type != OP_RV2AV && o2->op_type != OP_PADAV)