summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-10-31 17:02:44 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-10-31 17:25:09 -0700
commitf64c9ac53bc4a5fa5967c92e98d7b42cca1ce97b (patch)
tree10136ffc3693709c80e4c0ef25908bf779d18413 /pp.c
parenta9aeb2f17bf8f278290ca5bb590566f31b78ffb1 (diff)
downloadperl-f64c9ac53bc4a5fa5967c92e98d7b42cca1ce97b.tar.gz
[perl #78580] Stop a simple *glob from calling get-magic
This also happens to apply to *{ $::{glob} }, but not to *{\*glob} or *{$thing = *glob}. In other words, it’s only when the operand is a real glob, and not a reference or a SVt_FAKE glob.
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 45f536e1d0..c73fdbf115 100644
--- a/pp.c
+++ b/pp.c
@@ -139,7 +139,7 @@ PP(pp_rv2gv)
{
dVAR; dSP; dTOPss;
- SvGETMAGIC(sv);
+ if (!isGV(sv) || SvFAKE(sv)) SvGETMAGIC(sv);
if (SvROK(sv)) {
wasref:
tryAMAGICunDEREF(to_gv);