CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [dilbert] how to check which perl stuff (modules) is running on my opensuse 12.3 : Edit Log



FishMonger
Veteran / Moderator

Jun 21, 2013, 11:15 AM


Views: 940
Re: [dilbert] how to check which perl stuff (modules) is running on my opensuse 12.3

Do you need/want to check for specific module(s), or do you want to list all of the installed modules.

For a single module, you just need to test if it loads.
perl -MHTML::TreeBuilder::LibXML -e 1

If you receive an error, then it isn't installed. If you don't get any output, then it's installed.

If you need to find all modules, you'll need to search for .pm files under the @INC dirs.


(This post was edited by FishMonger on Jun 21, 2013, 11:15 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Jun 21, 2013, 11:15 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives