Commits

Toby Inkster committed 0105315

copy namespace::clean stuff from Scalar::Does to IO::Detect

Comments (0)

Files changed (1)

 	$IO::Detect::VERSION   = '0.100';
 }
 
+use namespace::clean 0.19 qw<>;
 use Sub::Exporter -setup => {
 	exports => [
 		qw( is_filehandle is_filename is_fileuri ),
 		default    => [qw( is_filehandle is_filename is_fileuri )],
 		smartmatch => [qw( FileHandle FileName FileUri )],
 	},
+	installer => sub {
+		namespace::clean::->import(
+			-cleanee => $_[0]{into},
+			grep { !ref } @{ $_[1] },
+		);
+		goto \&Sub::Exporter::default_installer;
+	},
 };
 
 use overload qw<>;