projects
/
gitmo/Moo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
guard against double import
[gitmo/Moo.git]
/
lib
/
Role
/
Tiny.pm
diff --git
a/lib/Role/Tiny.pm
b/lib/Role/Tiny.pm
index
ebf9807
..
844272f
100644
(file)
--- a/
lib/Role/Tiny.pm
+++ b/
lib/Role/Tiny.pm
@@
-20,6
+20,7
@@
sub import {
my $target = caller;
my $me = $_[0];
strictures->import;
+ return if $INFO{$target}; # already exported into this package
# get symbol table reference
my $stash = do { no strict 'refs'; \%{"${target}::"} };
# install before/after/around subs