On Thu, Jun 9, 2011 at 4:42 PM, <sono...@fannullone.us> wrote: > I'd like to find a way to make a Perl script "modular". What I mean > is that I want to be able to distribute a script either with or without a > particular module/package/lib and have the main script run no matter if it's > included or not. > > What I'm trying to come up with is a "lite" version of a script > that's missing some features. To "upgrade", all they'd have to do is drop > in the new module without needing to change any code in the main script. Is > that possible? >
Would something like this meet your need? I found it on CPAN by searching<http://search.cpan.org>for "Module". http://search.cpan.org/~ivorw/Module-Optional-0.03/lib/Module/Optional.pm -- Robert Wohlfarth