Skip to content

Commit

Permalink
Merge pull request #14 from nigelm/suppress_once_warnings
Browse files Browse the repository at this point in the history
Suppress “once” warnings from exporter
  • Loading branch information
abw committed Jul 17, 2017
2 parents 9d5b358 + db3f84e commit 9f070aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Badger/Exporter.pm
Expand Up @@ -378,6 +378,8 @@ sub export {
sub exportables {
my $class = shift;
no strict REFS;
no warnings ONCE;

my $cache = ${ $class.PKG.EXPORTABLES } ||= do {
my ($pkg, $symbols, %done, @all, %any, %tags, %hooks, @fails, @before, @after);
my @pending = ($class);
Expand Down

0 comments on commit 9f070aa

Please sign in to comment.