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 SEI  One Freedom Valley Drive | Oaks, PA 19456 | p: 610.676.2258 | [EMAIL PROTECTED]

 



____________________________________________________________________
IMPORTANT NOTICES:
This message is intended only for the addressee. Please notify
the sender by e-mail if you are not the intended recipient. If you
are not the intended recipient, you may not copy, disclose, or
distribute this message or its contents to any other person and any
such actions may be unlawful.

Banc of America Securities LLC("BAS") does not accept time
sensitive, action-oriented messages or transaction orders, including
orders to purchase or sell securities, via e-mail.

BAS reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the BAS e-mail system.
____________________________________________________________________
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to