I have a program that uses 6 different 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]

 

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to