drop Exporter 5.57 prereq
[p5sagit/Sub-Name.git] / lib / Sub / Name.pm
index 344e4f8..b3fb8d9 100644 (file)
@@ -1,5 +1,6 @@
 package Sub::Name;
-# ABSTRACT: (re)name a sub
+# ABSTRACT: (Re)name a sub
+# KEYWORDS: subroutine function utility name rename symbol
 
 =pod
 
@@ -53,7 +54,10 @@ use 5.006;
 use strict;
 use warnings;
 
-use Exporter 5.57 'import';
+our $VERSION = '0.21';
+
+use Exporter ();
+*import = \&Exporter::import;
 
 our @EXPORT = qw(subname);
 our @EXPORT_OK = @EXPORT;
@@ -61,9 +65,7 @@ our @EXPORT_OK = @EXPORT;
 use XSLoader;
 XSLoader::load(
     __PACKAGE__,
-    exists $Sub::Name::{VERSION}
-        ? ${ $Sub::Name::{VERSION} }
-        : (),
+    $VERSION,
 );
 
 1;