Packages not in Groups

perl-Devel-Symdump: Devel-Symdump - dump symbol names or the symbol table

Name:perl-Devel-Symdump Vendor:Andreas Koenig F <andk{%}cpan{*}org>
Version:2.07 License:Artistic
Release:1 URL:http://www.cpan.org
Summary
This little package serves to access the symbol table of perl. =over 4 =item "Devel::Symdump->rnew(@packages)" returns a symbol table object for all subtrees below @packages. Nested Modules are analyzed recursively. If no package is given as argument, it defaults to "main". That means to get the whole symbol table, just do a "rnew" without arguments. The global variable $Devel::Symdump::MAX_RECURSION limits the recursion to prevent contention. The default value is set to 97, just low enough to survive the test suite without a warning about deep recursion. =item "Devel::Symdump->new(@packages)" does not go into recursion and only analyzes the packages that are given as arguments. =item packages, scalars, arrays, hashes, functions, ios The methods packages(), scalars(), arrays(), hashes(), functions(), ios(), and (for older perls) unknowns() each return an array of fully qualified symbols of the specified type in all packages that are held within a Devel::Symdump object, but without the leading "$", "@" or "%". In a scalar context, they will return the number of such symbols. Unknown symbols are usually either formats or variables that haven't yet got a defined value. =item as_string =item as_HTML As_string() and as_HTML() return a simple string/HTML representations of the object. =item diff Diff() prints the difference between two Devel::Symdump objects in human readable form. The format is similar to the one used by the as_string method. =item isa_tree =item inh_tree Isa_tree() and inh_tree() both return a simple string representation of the current inheritance tree. The difference between the two methods is the direction from which the tree is viewed: top-down or bottom-up. As I'm sure, many users will have different expectation about what is top and what is bottom, I'll provide an example what happens when the Socket module is loaded: =item % print Devel::Symdump->inh_tree AutoLoader DynaLoader Socket DynaLoader Socket Exporter Carp Config Socket The inh_tree method shows on the left hand side a package name and indented to the right the packages that use the former. =item % print Devel::Symdump->isa_tree Carp Exporter Config Exporter DynaLoader AutoLoader Socket Exporter DynaLoader AutoLoader The isa_tree method displays from left to right ISA relationships, so Socket IS A DynaLoader and DynaLoader IS A AutoLoader. (Actually, they were at the time this manpage was written) =back You may call both methods, isa_tree() and inh_tree(), with an object. If you do that, the object will store the output and retrieve it when you call the same method again later. The typical usage would be to use them as class methods directly though.

Arch: noarch

Download:perl-Devel-Symdump-2.07-1.noarch.rpm
Build Date:Wed Apr 4 14:52:48 2007
Packager:Arix International <cpan2rpm{%}arix{*}com>
Size:22 KiB

Changelog

* Wed Apr 4 21:00:00 2007 cmc@vosill.math.hmc.edu
- Initial build.

Listing created by RepoView-0.5.2