In a message dated: Wed, 20 Mar 2002 17:54:46 EST
Benjamin Scott said:

>On 20 Mar 2002, at 5:23pm, Scott Garman wrote:
>> What is the command to list the perl modules I have installed?
>
>  I do not think there is an "easy" way to answer this question.  When a
>Perl program imports a Perl module, the Perl compiler/interpreter searches
>for the module file in the directories listed in the @INC array (similar to
>an executable $PATH search).

        perldoc perllocal 

This will tell you only the modules you've installed above and beyond 
the standard perl installation base.  i.e., for 'perldoc perllocal'
to be of any help, you have to have manually (or via CPAN) installed 
the modules your self.

Unfortunately, this does not work for modules installed via Debian's 
apt-get mechanism, since these all install under the standard
install-base hierarchy, not the 'local' tree, which is where
modules above and beyond the core set get installed.

>  Here is a quick hack (emphasis hack) that may serve your needs:
>
>perl -e 'foreach $dir (@INC) { system("ls -1 $dir/*pm"); }
>
>> What is the address for the GNHLUG-announce list? I have Bradley Kuhn from
>> the Free Software Foundation coming to UNH next week that I'd like to let
>> folks know of.

While I love Ben's approach for providing that information, I'd have to
say that it's almost not necessary now :)
-- 

Seeya,
Paul
----
        It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

         If you're not having fun, you're not doing it right!



*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to