diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-01-30 13:42:56 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-01-30 13:42:56 +0000 |
commit | f9d52e31c1813ca7a3cf9d975dc34f04194d1328 (patch) | |
tree | b3e1a2c046ea4fde5afcf0040576d488cf910737 /pp.c | |
parent | 25909821eb3e0c6b8049a206da47b68b90d7e46a (diff) | |
download | perl-f9d52e31c1813ca7a3cf9d975dc34f04194d1328.tar.gz |
Code assumes that *FOO{SCALAR} will always return a scalar reference,
so make it so, creating $FOO if necessary.
(Effectively this is a policy decision that PERL_DONT_CREATE_GVSV is
visible to XS code, but isn't visible to Perl code)
p4raw-id: //depot/perl@27002
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -607,7 +607,7 @@ PP(pp_gelem) break; case 'S': if (strEQ(second_letter, "CALAR")) - tmpRef = GvSV(gv); + tmpRef = GvSVn(gv); break; } } |