guard against double import
[gitmo/Moo.git] / lib / Role / Tiny.pm
index ebf9807..844272f 100644 (file)
@@ -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