use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. my @executables; print <$script" or next; open SOURCE, "$source" or next; chmod 0755, "$script"; push @executables, "$script"; print SCRIPT "$Config{startperl}\n"; while () { print SCRIPT; } close SCRIPT; close SOURCE; } WriteMakefile( 'NAME' => 'UML::Sequence', 'VERSION_FROM' => 'lib/UML/Sequence.pm', # finds $VERSION 'PREREQ_PM' => { XML::DOM => 1.25, Test::More => 0,}, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ( ABSTRACT_FROM => 'lib/UML/Sequence.pm', AUTHOR => 'Phil Crow ' ) : () ), 'EXE_FILES' => \@executables # [ 'genericseq.pl', 'seq2svg.pl' ] );