summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-22 15:59:16 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-22 15:59:16 -0800
commit9a8aa25b28a859846cf1458bfe11f17ad258e982 (patch)
treebd95f66dc420eea58847a0f6845752ecca72c1c7 /perl.c
parent3840c57b8cefe640d72c4ad40d0b13c41cf80f6d (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 0f9ab0072b..eb9889caa0 100644
--- a/perl.c
+++ b/perl.c
@@ -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)