Berkeley CSUA MOTD:Entry 38643
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2005/7/15-18 [Computer/SW/Languages/Perl] UID:38643 Activity:nil
7/15    How do you check what Perl libraries you have on your machine?
        \_ Perldoc isn't working for me to figure out command line way right
           now, but you can always 'perl -V' and manually look in the @INC
           directories.
        \_ If you just want to know if module Foo is installed, you can say:
           perl -MFoo -e ''
           If Foo is present, this will exit silently.  If it's absent, you'll
           get an error to the effect of 'Can't locate Foo.pm in @INC' -dans