Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanse B::HV::save of B::C #24

Open
toddr opened this issue Oct 24, 2015 · 0 comments
Open

Cleanse B::HV::save of B::C #24

toddr opened this issue Oct 24, 2015 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented Oct 24, 2015

commit bc45f606db184ac124304ff71a6e79e17915d972
Author: Todd Rinaldo [email protected]
Date: Fri Oct 23 19:25:03 2015 -0500

Don't save the HV if it's a B::C space
diff --git a/lib/B/C/OverLoad/B/HV.pm b/lib/B/C/OverLoad/B/HV.pm
index 3ec792b..e11ac94 100644
--- a/lib/B/C/OverLoad/B/HV.pm
+++ b/lib/B/C/OverLoad/B/HV.pm
@@ -40,6 +40,7 @@ sub save {
     my $magic;

     if ($name) {
+        return if ( $name =~ /^B::C($|::)/ );

         # It's a stash. See issue 79 + test 46
         debug(
toddr pushed a commit that referenced this issue Sep 4, 2019
* commit 'a7b3b1b948af969b5446500f73f7b11187d69f72':
  Clear Internals::V patches list to avoid them as COWPVs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant