[Cook] perl module dependencies

Jerry Pendergraft jerry at endocardial.com
Fri Jul 12 03:54:07 EST 2002


If some of you are working with perl and modules, could you tell me how
you deal with the module dependencies?
Two level are of interest:
1) if foo.pl does 
   use bar.pm; 
   use bax::zap;
   And bar.pm and bax/zap.pm are files within your project, then they are
   dependencies for foo.pl. 

2) I one produces multiple "packages" out of a project then each package
   must include not only foo, "the executable", but bar.pm and bax/zap.pm.
   So the question is, how to set up recipes which can tell what .pm
   modules must be "included" with a perl program being distributed.

Note that I have been dealing with perl code so that there is a
"build" process which does perl -cw to check syntax etc.
This means that any "used" modules must be built before the "using" module
or program.

I have been generating cascade dependencies which seems to work for the
building part, but I still have not figure out how do deal with the
package part.

Ideas anyone?
-- 
Jerry Pendergraft                        jerry.pendergraft at endocardial.com
Endocardial Solutions                    voice: 651-523-6935
1350 Energy Lane, Suite 110                fax: 651-644-7897
St Paul, MN 55108-5254




More information about the Cook-users mailing list