diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2004-09-30 20:51:31 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-09-30 20:51:31 +0000 |
commit | ac53db4c3f7e2209c2c3f33df2423b5511eedd24 (patch) | |
tree | 3cc642b808a44eabc82437cfdb13fcc6ef025de2 /pp.c | |
parent | 476b65d99f3d74dcdd84fe0193db04f9db2c3d52 (diff) | |
download | perl-ac53db4c3f7e2209c2c3f33df2423b5511eedd24.tar.gz |
[perl #31767] open $1, "file" doesn't raise an exception
p4raw-id: //depot/perl@23342
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -159,6 +159,8 @@ PP(pp_rv2gv) /* If this is a 'my' scalar and flag is set then vivify * NI-S 1999/05/07 */ + if (SvREADONLY(sv)) + Perl_croak(aTHX_ PL_no_modify); if (PL_op->op_private & OPpDEREF) { char *name; GV *gv; |