I am still not quite understanding what you want. Are you saying you want to create a CPAN module that installs a script (and possible some modules as well)? If so, then take a look at any of the existing modules that do that like App::cpanminus. I believe App is the namespace for that sort of module. In particular, look at the EXE_FILES section of its Makefile.PL and the modules layout.
http://cpansearch.perl.org/src/MIYAGAWA/App-cpanminus-1.7042/Makefile.PL On Mon, Jan 23, 2017, 04:44 Luca Ferrari <fluca1...@infinito.it> wrote: > On Mon, Jan 23, 2017 at 10:39 AM, Chas. Owens <chas.ow...@gmail.com> > wrote: > > I think you are saying you want to be able to create one file you can > give > > to someone else and have them run a Perl 5 program you have written > without > > having to install all of the modules (and possibly even perl itself). If > > this is the case, then you are in luck. There are a couple of solutions > > that exist today: > > No, sorry, I misexplained my aim: I want to be able to do all normal > CPAN stuff like installing my module, testing, getting dependencies, > but with the final result of installing an executable instead of a > module. > Your solutions are really interesting, and while I already knew about > par and docker, fatpack has been an interesting hint, but I'm looking > for something simpler. > > Luca >