From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use strict;
my $dist = {
COMPRESS => 'gzip -9f', # Compress tarball using gzip
SUFFIX => 'gz', # File suffix for tarball
};
if($^O eq 'darwin') {
$dist->{'TAR'} = 'gtar';
}
WriteMakefile(
ABSTRACT_FROM => 'lib/Array/Iterator.pm',
AUTHOR => 'Nigel Horne <njh@bandsman.co.uk>',
NAME => 'Array::Iterator',
VERSION_FROM => 'lib/Array/Iterator.pm', # finds $VERSION in the module
((defined($ExtUtils::MakeMaker::VERSION) && ($ExtUtils::MakeMaker::VERSION >= 6.3002))
? ('LICENSE'=> 'GPL')
: ()),
PREREQ_PM => {
'ExtUtils::MakeMaker' => 6.64, # Minimum version for TEST_REQUIRES
},
META_MERGE => {
resources => {
repository => {
type => 'git',
},
bugtracker => {
},
},
},
TEST_REQUIRES => {
'Test::Most' => 0,
}, dist => $dist,
clean => { FILES => 'Array-Iterator-*' }, # Clean up distribution files
);