Skip to content

Commit

Permalink
Merge pull request #51 from rwp0/rwp0/fix-indirect-syntax
Browse files Browse the repository at this point in the history
Fix indirect syntax
  • Loading branch information
pmqs authored Nov 23, 2023
2 parents e193f25 + 7bd8408 commit f1c70d0
Show file tree
Hide file tree
Showing 46 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions lib/File/GlobMapper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ BEGIN
{
if ($] < 5.006)
{
require File::BSDGlob; import File::BSDGlob qw(:glob) ;
$CSH_GLOB = File::BSDGlob::GLOB_CSH() ;
require File::BSDGlob; File::BSDGlob->import(':glob');
$CSH_GLOB = File::BSDGlob::GLOB_CSH();
*globber = \&File::BSDGlob::csh_glob;
}
else
{
require File::Glob; import File::Glob qw(:glob) ;
$CSH_GLOB = File::Glob::GLOB_CSH() ;
require File::Glob; File::Glob->import(':glob');
$CSH_GLOB = File::Glob::GLOB_CSH();
#*globber = \&File::Glob::bsd_glob;
*globber = \&File::Glob::csh_glob;
}
Expand Down
2 changes: 1 addition & 1 deletion t/000prereq.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };


my $VERSION = '2.206';
Expand Down
2 changes: 1 addition & 1 deletion t/001bzip2.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 841 + $extra ;
};
Expand Down
2 changes: 1 addition & 1 deletion t/002any-transparent.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 15 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/004gziphdr.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };


plan tests => 918 + $extra ;
Expand Down
2 changes: 1 addition & 1 deletion t/005defhdr.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 114 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/006zip.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 108 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/010examples-bzip2.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 19 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/010examples-zlib.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 19 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/011-streamzip.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 136 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/01misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 163 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/020isize.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 76 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/050interop-gzip.t
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 7 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/101truncate-bzip2.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 3308 + $extra;

Expand Down
2 changes: 1 addition & 1 deletion t/101truncate-deflate.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 2552 + $extra;

Expand Down
2 changes: 1 addition & 1 deletion t/101truncate-gzip.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 3040 + $extra;

Expand Down
2 changes: 1 addition & 1 deletion t/101truncate-rawdeflate.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

my $tests = Compress::Raw::Zlib::is_zlibng() ? 615 : 625;
plan tests => $tests + $extra;
Expand Down
2 changes: 1 addition & 1 deletion t/101truncate-zip.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 7732 + $extra;

Expand Down
2 changes: 1 addition & 1 deletion t/105oneshot-gzip-only.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 70 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/105oneshot-zip-bzip2-only.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 248 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/105oneshot-zip-only.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 230 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/105oneshot-zip-store-only.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 1058 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/107multi-zip-only.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 21 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/108anyunc-transparent.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 15 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/111const-deflate.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 390 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/112utf8-zip.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 28 + $extra;
}
Expand Down
2 changes: 1 addition & 1 deletion t/113issues.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BEGIN {
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 3 + $extra;
}
Expand Down
2 changes: 1 addition & 1 deletion t/compress/any.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 48 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/anyunc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 36 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/compress/destroy.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 15 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/encode.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;

my $st = eval { require Test::NoWarnings ; import Test::NoWarnings; 1; };
my $st = eval { require Test::NoWarnings ; Test::NoWarnings->import; 1; };
$extra = 1
if $st ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/generic.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;

my $st = eval { require Test::NoWarnings ; import Test::NoWarnings; 1; };
my $st = eval { require Test::NoWarnings ; Test::NoWarnings->import; 1; };
$extra = 1
if $st ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/merge.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 165 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/multi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 1828 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/newtied.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => $tests + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/oneshot.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 1007 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/compress/prime.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN
# use Test::NoWarnings, if available
$extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

}

Expand Down
2 changes: 1 addition & 1 deletion t/compress/tied.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

my $tests ;
$BadPerl = ($] >= 5.006 and $] <= 5.008) ;
Expand Down
2 changes: 1 addition & 1 deletion t/compress/zlib-generic.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 49 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/cz-01version.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 2 + $extra ;

Expand Down
2 changes: 1 addition & 1 deletion t/cz-03zlib-v1.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

my $count = 0 ;
if ($] < 5.005) {
Expand Down
2 changes: 1 addition & 1 deletion t/cz-05examples.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BEGIN
# use Test::NoWarnings, if available
my $extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };

plan tests => 26 + $extra ;
}
Expand Down
2 changes: 1 addition & 1 deletion t/cz-06gzsetp.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BEGIN
# use Test::NoWarnings, if available
$extra = 0 ;
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
if eval { require Test::NoWarnings ; Test::NoWarnings->import; 1 };
}

my $ver = Compress::Zlib::zlib_version();
Expand Down
Loading

0 comments on commit f1c70d0

Please sign in to comment.