You can use the find command to find all of the .pm files in the INC
dirs listed with perl -V.

Do you need to check somehow if a module is installed before running a
script?

This should work to check in your script:

eval {
        require foo.pm;
        import foo.pm;
        }

if ($@) { die "foo.pm not installed?" }

Luke

> -----Original Message-----
> From: Rob [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 05, 2003 6:36 AM
> To: [EMAIL PROTECTED]
> Subject: Module listing
> 
> 
> Is there a perl command to list installed modules?
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to