use 5.006; # For 'our', at the very least. use strict; use warnings; use Config; use ExtUtils::MakeMaker qw{WriteMakefile prompt}; use FileHandle; use Getopt::Std; our $VERSION = '0.003'; my %opt; getopts ('n', \%opt) or die <new ("<$fni") or die <new (">$fno") or die <) {print $fho $_} } @clean_files = @exe_files = map {"[.bin]$_.com"} @exe_files; } else { @exe_files = map {"bin/$_"} @exe_files; } } ##my $vers = $] >= 5.008 ? '-5.8' : ''; my $vers = ''; (my $mmv = ExtUtils::MakeMaker->VERSION) =~ s/_//g; WriteMakefile ( ## (MM->can ('signature_target') ? (SIGN => 1) : ()), NAME => 'Games::Sudoku::General', VERSION_FROM => 'lib/Games/Sudoku/General.pm', PREREQ_PM => { }, PL_FILES => {}, # Prevent old MakeMaker from running Build.PL EXE_FILES => \@exe_files, # 'linkext' => {LINKTYPE => ''}, 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}, realclean => {FILES => join ' ', @clean_files}, $] >= 5.005 ? ( AUTHOR => 'Tom Wyant (wyant at cpan dot org)', ABSTRACT => 'Solve Sudoku and related puzzles', BINARY_LOCATION => "$Config{archname}$vers/Games-Sudoku-General.tar.gz", ($mmv >= 6.31 ? (LICENSE => 'perl') : ()) ) : (), );