summaryrefslogtreecommitdiffstats
path: root/lib/Package/Stash/PP.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-11-16 05:16:44 -0600
committerJesse Luehrs <doy@tozt.net>2010-11-16 05:16:44 -0600
commit4723417a0e4c38ba9bf00a95d70e6872535c4d4c (patch)
treed478eb20787f8be991c6cfa1b70901cb6ae385c8 /lib/Package/Stash/PP.pm
parent079d40f534bbc0751bd6e2c621edfd367d3943f8 (diff)
downloadpackage-stash-4723417a0e4c38ba9bf00a95d70e6872535c4d4c.tar.gz
package-stash-4723417a0e4c38ba9bf00a95d70e6872535c4d4c.zip
fix another edge case
Diffstat (limited to 'lib/Package/Stash/PP.pm')
-rw-r--r--lib/Package/Stash/PP.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Package/Stash/PP.pm b/lib/Package/Stash/PP.pm
index 446642b..55dfddd 100644
--- a/lib/Package/Stash/PP.pm
+++ b/lib/Package/Stash/PP.pm
@@ -196,13 +196,7 @@ sub get_symbol {
}
}
else {
- if ($type eq 'CODE') {
- # this effectively "de-vivifies" the code slot. if we don't do
- # this, referencing the coderef at the end of this function
- # will cause perl to auto-vivify a stub coderef in the slot,
- # which isn't what we want
- $self->add_symbol($variable);
- }
+ return undef;
}
}