diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-09-25 20:34:11 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-10-10 21:56:48 -0700 |
commit | 6102323a2ca31b7c760d9a3b81cb1d3e3d551206 (patch) | |
tree | 996fef86c65479c81a0fe7f50dc70f0ebd92978a /mg.c | |
parent | 2a57afb16e3315d9a0aaa4e79615282cf63c970d (diff) | |
download | perl-6102323a2ca31b7c760d9a3b81cb1d3e3d551206.tar.gz |
Assignment to array elem refs
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2480,6 +2480,10 @@ Perl_magic_setlvref(pTHX_ SV *sv, MAGIC *mg) case SVt_PVGV: gv_setref(mg->mg_obj, sv); SvSETMAGIC(mg->mg_obj); + break; + case SVt_PVAV: + av_store((AV *)mg->mg_obj, SvIV((SV *)mg->mg_ptr), + SvREFCNT_inc_simple_NN(SvRV(sv))); } sv_unmagic(sv, PERL_MAGIC_lvref); return 0; |