|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Listing Installed Modules |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|