Skip to content

Commit 67e301b

Browse files
committed
use Exporter if the back compat that you should not be using anyway is not being used
1 parent 5b15e2a commit 67e301b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/Test/Script.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use 5.008001;
4646
use strict;
4747
use warnings;
4848
use Carp qw( croak );
49-
use Exporter;
49+
use Exporter ();
5050
use File::Spec;
5151
use File::Spec::Unix;
5252
use Probe::Perl;
@@ -103,8 +103,10 @@ sub import {
103103
}
104104
$ctx->release;
105105
}
106-
foreach ( @EXPORT ) {
107-
$class->export_to_level(1, $class, $_);
106+
else
107+
{
108+
unshift @_, $class;
109+
goto &Exporter::import;
108110
}
109111
}
110112

0 commit comments

Comments
 (0)