diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-10-31 17:02:44 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-31 17:25:09 -0700 |
commit | f64c9ac53bc4a5fa5967c92e98d7b42cca1ce97b (patch) | |
tree | 10136ffc3693709c80e4c0ef25908bf779d18413 /pp.c | |
parent | a9aeb2f17bf8f278290ca5bb590566f31b78ffb1 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |