in reply to Checking for modules

I am strictly a Linux user, but surely perldoc will work on NT as well:
perldoc Foo::Bar
is the least amount of characters i can think of to see if a module is installed on the box in question.

UPDATE:
Ahhh ... haven't been bitten by that yet Aristotle ... but i do believe you. Maybe i should have said:

[root@localhost /root]# cpan

cpan shell -- CPAN exploration and modules installation (v1.71) ReadLine support enabled

cpan> install Foo::Bar

instead ;) (yes yes ... this won't work with ppm, but you get the gist ... just install it, chances are if it is already installed, it could use an upgrade).

Thanks once again Aristotle (he watches my back ;))

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: Checking for modules
by Aristotle (Chancellor) on Jul 16, 2003 at 15:42 UTC
    This doesn't work if there's no POD in the module; what's worse, you get the same error regardless of whether the module is missing POD or missing entirely.

    Makeshifts last the longest.