fdesar has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Monks,

I'm trying to package some scripts with their own minimum perl runtime :

Is there a way to find the complete list of all the perl library modules required to run a set of scripts ?

I can do it by hands, but I wonder if there is any already existing utility to find this out cleanly...

Thanks for you time and wisdom,

François

  • Comment on List of Perl library modules needed run scripts

Replies are listed 'Best First'.
Re: List of Perl library modules needed run scripts
by haukex (Archbishop) on Jan 01, 2020 at 13:36 UTC

    I usually use scandeps.pl; note in particular its -B and -R options. Once you've got the list of dependencies, you could use the cpanfile format to document them (this would also allow use with Carton if you are so inclined).