summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-28 11:27:46 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-28 11:27:46 +0000
commita3f914c54a06647534c0855205d45eb950aebdd4 (patch)
tree8bada15a2dcc58072ddcdefbe9a64796f0017be0 /op.c
parent60ad88b8fe9480f2f097fca26f4f3a9f83a4f830 (diff)
downloadperl-a3f914c54a06647534c0855205d45eb950aebdd4.tar.gz
make $1 et al readonly under threads; make C<undef $1> fail like
C<$1 = undef> does p4raw-id: //depot/perl@2335
Diffstat (limited to 'op.c')
-rw-r--r--op.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/op.c b/op.c
index cdc93325d6..d98cbd9e98 100644
--- a/op.c
+++ b/op.c
@@ -570,6 +570,16 @@ find_threadsv(char *name)
case '`':
case '\'':
PL_sawampersand = TRUE;
+ /* FALL THROUGH */
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
SvREADONLY_on(sv);
/* FALL THROUGH */