On Wed, 20 May 1998 11:01:44 -0500, Kevin van Haaren wrote: > >Is there a way to test if a module has >already been loaded? Chris answered your first question, but not this one. You can check in the %INC hash. The keys use Unix file name semantics. For example: #!perl use LWP::UserAgent; print "existsn" if exists $INC{"LWP/UserAgent.pm"}; The hash element contains the full MacOS path to the file. Print out all of %INC if you want to see how much stuff your favorite module loads. > >Thanks - Kevin >If this is a FAQ yell at me at: kevinv@sound.net ------- Paul J. Schinder schinder@pobox.com ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch