summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 34ae75f8c7..b5c696c7e5 100644
--- a/pp.c
+++ b/pp.c
@@ -3115,7 +3115,7 @@ PP(pp_substr)
}
}
- if (! lvalue)
+ if (GIMME_V != G_VOID && !lvalue)
sv_setpvn(TARG, tmps, rem);
#ifdef USE_LOCALE_COLLATE
sv_unmagic(TARG, PERL_MAGIC_collxfrm);