I'm trying to create a module which will include a number of stand alone scripts that used the module files. My understanding from looking at the ExtUtils::MakeMaker POD, as well as some examples from CPAN, I should be able to do this by using this in Makefile.PL:
use 5.012001;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'MyModule',
VERSION_FROM => 'lib/MyModule.pm',
PREREQ_PM => {'WWW::Curl::Easy' => 4.15,
'JSON::XS' => 2.32,
'Term::ReadKey' => 2.30,
'String::Strip' => 1.02,
'Date::Parse' => 2.30,
},
ABSTRACT_FROM => 'lib/MyModule.pm',
AUTHOR => 'me <me@example.com>',
EXE_FILES => [ 'script_name' ],
);
But when I run 'make dist', the verbose output from 'tar' does not include 'script_name', and extracting the tar file content does not include it (just being sure ;).
Yet the examples I've looked at don't seem to be doing anything more than the single EXE_FILES line.
What am I missing? Many thanks in advance.