Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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
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.
    --
    Brovnik

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-12-25 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (162 votes), past polls