Operating System - HP-UX
1753813 Members
7719 Online
108805 Solutions
New Discussion юеВ

Re: gathering info on perl env...specifically installed modules

 
SOLVED
Go to solution
Manuel Contreras
Regular Advisor

gathering info on perl env...specifically installed modules

getting ready to migrate to over to a newer version of perl...and wanted to verify what modules exist in current enviornment.


modules under perl v5.6.1

> /opt/perl/bin/ppm query
Archive-Tar [0.072 ] module for manipulation of tar archives.
Compress-Zlib [1.08 ] Interface to zlib compression library
Convert-ASN1 [0.10 ] Convert between perl data structures and ASN.1 encoded packets
Digest-MD5 [2.11 ] Perl interface to the MD5 Algorithm
File-CounterFile [0.12 ] Persistent counter class
Font-AFM [1.18 ] Interface to Adobe Font Metrics files
HTML-Parser [3.19 ] SGML parser class
HTML-Tagset [3.03 ] Data tables useful in parsing HTML
HTML-Tree [3.11 ] HTML syntax tree builder
MIME-Base64 [2.11 ] Encoding and decoding of base64 strings
PPM [2.1.5 ] Perl Package Manager: locate, install, upgrade software packages.
SOAP-Lite [0.46 ] Library for Simple Object Access Protocol (SOAP) clients and servers in Perl
Storable [1.011 ] Persistency for perl data structures
URI [1.11 ] Uniform Resource Identifiers (absolute and relative)
XML-DOM [1.25 ] A perl module for building DOM Level 1 compliant document structures
XML-Parser [2.27 ] A Perl module for parsing XML documents
XML-Simple [1.05 ] Trivial API for reading and writing XML (esp config files)
XML-XPath [1.09 ] A set of modules for parsing and evaluating XPath statements
XML-XSLT [0.32 ] A perl module for processing XSLT
libnet [1.07.03] Collection of Network protocol modules
libwww-perl [5.51 ] Library for WWW access in Perl
libxml-perl [0.07 ] A collection of Perl modules for working with XML
perl-ldap [0.23 ] A library of modules for implementing an LDAP client



ran the same command on a new installation of v5.8.8 that came w/11.31, and it appears we don't have any modules installed...

ppm> query
No query result sets -- provide a query term.


does this sound right?
is there another command I could utilize to to verify installed modules?
thanks,
manuel
2 REPLIES 2
H.Merijn Brand (procura
Honored Contributor
Solution

Re: gathering info on perl env...specifically installed modules

It's obvious you are using the ActivePerl build(s). ppm is only working for ActivePerl.

# ppm help query
query -- Query Installed Packages
Synopsis
query Displays list of previous queries
query Displays results of previous query
query Performs a new query using
query * Displays a list of all installed packages

# ppm query '*'
Querying target 1 (ActivePerl 5.8.3.809)
1. ActivePerl-DocTools [0.04] Perl extension for Documentation TOC Gene~
2. ActiveState-Relocat~ [0.03] Relocate a Perl installation
3. Archive-Tar [1.07] Manipulates TAR archives
4. Compress-Zlib [1.22] Interface to zlib compression library
5. Convert-ASN1 [0.18] ASN.1 Encode/Decode library
6. Data-Dump [1.01] Pretty printing of data structures
7. Digest-HMAC [1.01] Keyed-Hashing for Message Authentication
8. Digest-MD2 [2.03] Perl interface to the MD2 Algorithm
9. Digest-MD4 [1.1] Perl interface to the MD4 Algorithm
10. Digest-SHA1 [2.06] Perl interface to the SHA-1 Algorithm
11. File-CounterFile [1.01] Persistent counter class
12. Font-AFM [1.18] Interface to Adobe Font Metrics files
13. HTML-Parser [3.34] HTML parser class
14. HTML-Tagset [3.03] Data tables useful in parsing HTML
15. HTML-Tree [3.18] build and scan parse-trees of HTML
16. IO-Zlib [1.01] IO:: style interface to Compress::Zlib
17. libwww-perl [5.75] Library for WWW access in Perl
18. libxml-perl [0.07] A collection of Perl modules for working ~
19. MD5 [2.02] Perl interface to the MD5 Algorithm (obso~
20. perl-ldap [0.30] Lightweight Directory Access Protocol
21. PPM3 [3.1] Perl Package Manager: locate, install, up~
22. SOAP-Lite [0.55] Library for Simple Object Access Protocol~
23. Tk [800.024] A Graphical User Interface Toolkit
24. URI [1.27] Uniform Resource Identifiers (absolute an~
25. XML-Parser [2.34] A Perl module for parsing XML documents
26. XML-RegExp [0.02] Regular expressions for XML tokens
27. XML-Simple [2.09] Easy API to read/write XML (esp config fi~
28. XML-XPath [1.13] A set of modules for parsing and evaluati~
29. XML-XSLT [0.45] A perl module for processing XSLT

What would give a much more accurate list, and also works on non-ActivePerl perl builds, is the command

# perldoc perllocal

Though the list won't be as nice an overview as ppm gives you. HTH

Enjoy, Have FUN! H.Merijn [ who never uses threaded perl builds ]
Enjoy, Have FUN! H.Merijn
Manuel Contreras
Regular Advisor

Re: gathering info on perl env...specifically installed modules

works like a charm.

what a way to start the week :)

thank you


/opt/perl_32/bin/ppm query '*' | sort -k 2,2
1. ActivePerl-Config [1.0] Override the ActivePerl configuration
2. ActivePerl-DocTools [1.1] Maintain HTML documentation
3. ActiveState-Relocat~ [1.3] Move perl distribution to new location
4. ActiveState-Scinepl~ [1.1] Perl extension to access Scineplex code l~
5. ActiveState-Utils [2.2] ActiveState's utility modules
6. Archive-Tar [1.30.0.~ Manipulates TAR archives
7. Archive-Zip [1.16] Provide an interface to ZIP archive files.
8. Compress-Zlib [1.42] Interface to zlib compression library
9. Convert-ASN1 [0.20] Convert between perl data structures and ~
10. Data-Dump [1.6] Stringified Perl data structures
11. Digest-HMAC [1.1] Keyed-Hashing for Message Authentication
12. Digest-MD2 [2.3] Perl interface to the MD2 algorithm
13. Digest-MD4 [1.5.0.1] Perl interface to the MD4 algorithm
14. Digest-SHA1 [2.11] Perl interface to the SHA-1 algorithm
15. File-CounterFile [1.4] Persistent counters
16. Font-AFM [1.19] Interface to Adobe Font Metrics files
17. HTML-Parser [3.55] Parsing of HTML documents
18. HTML-Tagset [3.10] Data tables useful in parsing HTML
19. HTML-Tree [3.20] Build and scan parse-trees of HTML
20. IO-String [1.8] Emulate file interface for in-core strings
21. IO-Zlib [1.4] IO:: style interface to Compress::Zlib
24. MD5 [2.3] Deprecated. Use Digest::MD5 instead.
25. MIME-Base64-Scripts [1.0] Scripts to encode/decode base64 and quote~
27. SOAP-Lite [0.55.0.~ Interface to the Simple Object Access Pro~
28. Term-ReadLine-Perl [1.3.2.1] Readline implementation in Perl
29. TermReadKey [2.30] Change terminal modes and perform non-blo~
30. Text-Autoformat [1.13] Automatic text wrapping and reformatting
31. Text-Reform [1.11] Manual text wrapping and reformatting
32. Tk [804.27.~ Tk - a Graphical User Interface Toolkit
34. URI [1.35] Uniform Resource Identifier references (R~
33. Unicode-String [2.9] Unicode abstraction based on UTF-16
35. XML-DOM [1.44] DOM Level 1 compliant document structures
36. XML-Parser [2.34.0.~ Parsing of XML documents
37. XML-RegExp [0.3] Regular expressions for XML tokens
38. XML-Simple [2.14] Easy API to maintain XML (esp config file~
39. XML-XPath [1.13] a set of modules for parsing and evaluati~
40. XML-XSLT [0.48] A perl module for processing XSLT
22. libwww-perl [5.805.0~ Web API for Perl
23. libxml-perl [0.8] Collection of Perl modules for working wi~
26. perl-ldap [0.33] LDAP client library
Querying target 1 (ActivePerl 5.8.8.817.1)