aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-14 01:18:13 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-14 01:18:13 +0100
commitefbf942beff334f14b9c2bc36ed5e8df9312e3bb (patch)
tree8dbc7c7adc64a16ea241ab2b8805faf99835fc91
parent8b67c81f2a67b59b2a7ead1ef527d7f9a1388d49 (diff)
downloadsbotools2-efbf942beff334f14b9c2bc36ed5e8df9312e3bb.tar.xz
Change prep.pl to change @EXPORT_OK instead of @EXPORT
-rwxr-xr-xt/prep.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/prep.pl b/t/prep.pl
index 766dde9..e2fc702 100755
--- a/t/prep.pl
+++ b/t/prep.pl
@@ -77,7 +77,7 @@ FIRST: for my $sub (@subs) {
my $has = 'FALSE';
SECOND: while (my $line = <$file_h>) {
if ($found eq 'FALSE') {
- $found = 'TRUE', next SECOND if $line =~ /\@EXPORT/;
+ $found = 'TRUE', next SECOND if $line =~ /our \@EXPORT_OK/;
} else {
last SECOND if $line =~ /^\);$/;
$has = 'TRUE', last SECOND if $line =~ /$sub/;
@@ -90,8 +90,8 @@ FIRST: for my $sub (@subs) {
close $file_h;
tie my @file, 'Tie::File', "$pwd/SBO/Lib.pm";
FIRST: for my $line (@file) {
- if ($line =~ /\@EXPORT/) {
- $line = "our \@EXPORT = qw(". join ' ', @not_exported;
+ if ($line =~ /our \@EXPORT_OK/) {
+ $line = "our \@EXPORT_OK = qw(". join ' ', @not_exported;
}
$line =~ s/^/#/ if $line =~ /^read_config;$/;
}