From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Blakemore
Sent: 21 February 2006 16:22
To: activeperl mailing list
Subject: Is there a Perl Installation Health checking module?
> We have perl installed in a common afs subdirectory that most of our
users point to.
>
> The person responsible for maintaining that common installation (and
all associated modules) is himself not
> very familiar with perl.
>
> He asked.... "when I get a request to install a module or a question
about a module not working.... how can I > tell if a module is installed
without a piece of test code and a use statement"
No need for a piece of test code...
perl -M<Module> -e0
will complain if the module can't be found (see 'perldoc perlrun').
>
> So, I did a quick: perl -e 'foreach $x (@INC){printf "$x\n"}'
> to show him where perl would look for installed modules.
>
> I was just wondering if there was a module or a tool available that
would perform a kinda "all in one" perl
> health check....
>
> As in get and list information about: perl version, installed
modules, @INC etc etc... and print out a nice
> report.
>
> Pointless writing it if it already exists.
Depend what information you want, and what you mean by a "nice report".
However ...
For version
perl -v or perl -e "print $]"
For @INC
perl -V or trying to load a missing module (see above)
To list modules installed by ppm
ppm query *
To list modules installed using the module INSTALL instructions (i.e.
perl Makefile.PL; make; make install)
perldoc perllocal
HTH
--
Brian Raven
=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message do not
necessarily reflect those of Atos Euronext Market Solutions.
L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail
vous parvient par erreur, nous vous prions de bien vouloir prevenir
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre
systeme. Le contenu de ce message electronique ne represente pas necessairement
la position ou le point de vue d'Atos Euronext Market Solutions.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs