Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Module dependencies

by DrZaius (Monk)
on May 24, 2001 at 21:09 UTC ( [id://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.
    --
    Brovnik

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2025-06-14 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.