On Sat, Sep 01, 2012 at 01:40:01AM -0700, Buddy Burden wrote: > > It's fairly unusually for a piece of code to be appropriate both as a > > stand-alone program and as a module loaded by other programs. ... > Perhaps David's original question would have been more clear with a > slightly more targeted footnote reference: > http://www.drdobbs.com/scripts-as-modules/184416165 > > Not saying that I agree that such things belong on CPAN (or that I > agree that they don't), but I understand the point of the exercise at > least.
The normal way to put such things on the CPAN (mostly because it's the way that plays nicely with the tools that we all use to install things from the CPAN) is something like this: https://github.com/DrHyde/perl-modules-CPAN-FindDependencies/blob/master/examples/cpandeps https://github.com/DrHyde/perl-modules-CPAN-FindDependencies/blob/master/lib/CPAN/FindDependencies.pm -- David Cantrell | A machine for turning tea into grumpiness Irregular English: you have anecdotes; they have data; I have proof