|
Joseph,
Yes. Use the %INC global hash which has module
names as keys and their full path as values.
Jean-Marc From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beck, Joseph Sent: Tuesday, June 20, 2006 3:26 PM To: [email protected] Subject: which .pm pkg is being used? I have a program that uses 6d
ifferent modules. Some there is only 1 pm in my path and others have
multiple. Is there a way to determine which
module is being used? I’m guessing its based on the perl
library path, but not sure. I helped some developers get this
program working on Solaris. It was developed using active state on win32. So,
now that it’s working we need to identify the version of the program & all
its dependencies in order to get them into our source code control
system. In my environment we have several
different versions & releases of perl on the system…the solaris release,
oracle’s, activestate… I’ve defined the activestate release
as the command interpreter in this script because that is apparently the release
people have been using—it has the most packages/modules in its lib
directory. Example: grep -i DBI /var/tmp/find.output |
grep -v html | grep -v man /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/auto/DBI /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/auto/DBI/DBIXS.h /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/auto/DBI/DBI.so /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/auto/DBI/DBI.bs /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/DBI.pm /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/Win32/DBIODBC.pm /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/Bundle/DBI.pm /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/DBI /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/ppm-conf/DBI.ppd /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/ppm-conf/DBI.pkg /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/DBI/DBD.pm /apps/util/ActivePerl-5.8/lib/site_perl/5.8.4/sun4-solaris-thread-multi/DBI/DBD Is there a perl switch I can add
that will display all the modules being used? Or another way to get this
info Thanks, Joe Beck Ciber Inc.
- a consultant to
|
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
