Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 9th, 2000, 09:30 AM
pdurusau pdurusau is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Atlanta, GA, USA
Posts: 2 pdurusau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
  #2  
Old September 12th, 2000, 05:57 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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


Reply With Quote
  #3  
Old September 12th, 2000, 07:48 AM
pdurusau pdurusau is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Atlanta, GA, USA
Posts: 2 pdurusau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Listing Installed Modules

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap