projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7ad9df7
)
Avoid autovivification
gfx [Fri, 18 Dec 2009 04:33:43 +0000 (13:33 +0900)]
lib/Mouse/Exporter.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Exporter.pm
b/lib/Mouse/Exporter.pm
index
b940779
..
46e61a3
100644
(file)
--- a/
lib/Mouse/Exporter.pm
+++ b/
lib/Mouse/Exporter.pm
@@
-225,6
+225,7
@@
sub do_unimport {
};
for my $keyword (@{ $spec->{REMOVABLES} }) {
+ next if !exists $stash->{$keyword};
my $gv = \$stash->{$keyword};
if(ref($gv) eq 'GLOB' && *{$gv}{CODE} == $spec->{EXPORTS}{$keyword}){ # make sure it is from us
delete $stash->{$keyword};