in reply to Making a distribution for my website

I want to have the tool scan the source code for “uses” and “require” statements, and generate a nice package that will automatically retrieve from CPAN and install the packages that this app needs. “DWIM,” y’know...

I would recommend against that, though it would be nice. It is not self-documenting. Too much voodoo.

Module::Install is really very nice and self-bundling. I.e., MI does not have to be installed on the target machine. It's good at pulling in CPAN deps and such when you run its Makefile.PL. And that is where the real task is. The Perl makefile is just a script. They come with lots of features from the various installers but they're still just scripts. I did one recently that fetched zipped dists of thirdparty JS stuff and installed it automatically when the makefile was run. That way no external libs are in the source control; only in the dist. Again, kudos to adamk is due. He maintains the archive zip stuff too, I think.

The other good thing about makefiles is they document their requirements both for man and machine. If you do end up writing a scanning script, have it write your makefile requires statements for you. Best of both. Share it if you do!

Oh, congratulations, too! Feels great to get a project done well.