#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Atlanta, GA, USA
    Posts
    2
    Rep Power
    0
    Hello,

    I am considering an installation of the slashdot code on a development server that I know does not have all the required Perl modules (or more likely wrong versions). Is there a command line option or short script that will list all the installed modules and their versions? I have searched the archives, perl.com faqs, and some Perl books but have come up empty.

    Many thanks!

    Patrick

    ------------------
    Patrick Durusau
    Director of Research and Development
    Society of Biblical Literature
    pdurusau@emory.edu
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    HI Patrick

    this is one to locate DBI drivers perhaps it can be modified
    -----------------------------------------
    #!/usr/bin/perl

    use DBI;

    my @drivers = DBI->available_drivers();

    foreach my $driver (@drivers) {
    print "Driver: $drivern";
    }
    exit

    ----------------------------------

    have you tried the locate command?

    eg. locate *.pm

    this will list all the .pm files on your machine.

    or a specific module you are looking for

    eg the DBI module
    # locate DBI.pm

    Hope this is of some help

  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Atlanta, GA, USA
    Posts
    2
    Rep Power
    0
    Thanks for the suggestion!

    I used find (Solaris) to isolate the *.pm files but that does not give me any versioning information. If I get real interested in the problem, it looks like I will have to write a script to find all the modules and then extract the version information. Seems like that should be a command line option, particularly as the number of modules (and their dependence upon each other) grows.

    Thanks again!

    Patrick

    ------------------
    Patrick Durusau
    Director of Research and Development
    Society of Biblical Literature
    pdurusau@emory.edu

IMN logo majestic logo threadwatch logo seochat tools logo