diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-22 15:59:16 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-22 15:59:16 -0800 |
commit | 9a8aa25b28a859846cf1458bfe11f17ad258e982 (patch) | |
tree | bd95f66dc420eea58847a0f6845752ecca72c1c7 /perl.c | |
parent | 3840c57b8cefe640d72c4ad40d0b13c41cf80f6d (diff) | |
download | perl-9a8aa25b28a859846cf1458bfe11f17ad258e982.tar.gz |
[perl #108794] Call special blocks in void context
Now BEGIN blocks, etc., are called in void context, so the result of
evaluating the last statement is not wastefully copied.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,7 +92,7 @@ static I32 read_e_script(pTHX_ int idx, SV *buf_sv, int maxlen); #define CALL_LIST_BODY(cv) \ PUSHMARK(PL_stack_sp); \ - call_sv(MUTABLE_SV((cv)), G_EVAL|G_DISCARD); + call_sv(MUTABLE_SV((cv)), G_EVAL|G_DISCARD|G_VOID); static void S_init_tls_and_interp(PerlInterpreter *my_perl) |