Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.

Comment on Re: Module dependencies
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2015-11-27 20:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (732 votes), past polls