diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-06-21 09:24:00 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-21 09:24:00 -0400 |
commit | b890920c31dbf99694e9ead88c1961a7cd4bc9d6 (patch) | |
tree | 49351ca1ae965e2f1df6cb12b909dbe943c31208 | |
parent | 90df056504293f74eb9c06f465a361cce4dd0e42 (diff) | |
download | dist-checkconflicts-b890920c31dbf99694e9ead88c1961a7cd4bc9d6.tar.gz dist-checkconflicts-b890920c31dbf99694e9ead88c1961a7cd4bc9d6.zip |
just use Exporter
if people care about the Sub::Exporter features, they can just use
Sub::Import
-rw-r--r-- | lib/Dist/CheckConflicts.pm | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Dist/CheckConflicts.pm b/lib/Dist/CheckConflicts.pm index ac860c7..03aaf80 100644 --- a/lib/Dist/CheckConflicts.pm +++ b/lib/Dist/CheckConflicts.pm @@ -3,9 +3,13 @@ use strict; use warnings; # ABSTRACT: declare version conflicts for your dist +use Exporter 'import'; +our @EXPORT = our @EXPORT_OK = ( + qw(conflicts check_conflicts calculate_conflicts dist) +); + use Carp; use List::MoreUtils 'first_index'; -use Sub::Exporter; =head1 SYNOPSIS @@ -82,13 +86,6 @@ loaded before or afterwards). =cut -my $import = Sub::Exporter::build_exporter({ - exports => [ qw(conflicts check_conflicts calculate_conflicts dist) ], - groups => { - default => [ qw(conflicts check_conflicts calculate_conflicts dist) ], - }, -}); - my %CONFLICTS; my %HAS_CONFLICTS; my %DISTS; |