in reply to Best way to check for installed module

Hi Monks,

One very simple method uses the following one-liner:

perl -e "use IO::Socket"

Thanks,
-DK

Replies are listed 'Best First'.
Re: Re: Best way to check for installed module
by count0 (Friar) on Apr 05, 2002 at 14:06 UTC
    Or similarly, as I do: perl -MModule::InQuestion -e '1'.
    /me hugs perlrun ;)

    Btw, you can even check $? (in bash) programatically to see if it was successful.

    </my 1.5 cents>