Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Module dependencies

by DrZaius (Monk)
on May 24, 2001 at 21:09 UTC ( #83006=note: print w/replies, xml ) Need Help??

in reply to Module dependencies

Why not also add the minimum required version?

I suppose that needs more explenation. I would do my schema like this:

  • modules -- contains information about the module, such as version, package name and so forth
  • dependancies -- a cross ref that maps dependancies. Yes, this circles back to modules. This is where you put minimum required version, if set.

In this set up, you don't need to record if something is pragma or not as your modules table should contain that data.

You may also want to explore the fact that a file may contain many modules and that there are pl (perl libraries) that get loaded as well.

I also recommend writing it with a DBD::CSV backend as it could eventually replace perllocal.

Replies are listed 'Best First'.
Re: Re: Module dependencies
by Brovnik (Hermit) on May 26, 2001 at 02:19 UTC
    Useful comments, see my Update above.

    The code as written now copes with several packages per file.
    I haven't so far tried to copes with perl libraries, but the EXE files listed in the pod are recorded.
    As far as backends go, once it is in a DB, output is fairly easy into any format.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83006]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2018-05-22 12:47 GMT
Find Nodes?
    Voting Booth?