|
NAMEforks::Devel::Symdump - dump symbol names or the symbol tableSYNOPSIS# Constructor require forks::Devel::Symdump; @packs = qw(some_package another_package); $obj = forks::Devel::Symdump->new(@packs); # no recursion $obj = forks::Devel::Symdump->rnew(@packs); # with recursion # Methods @array = $obj->packages; @array = $obj->scalars; @array = $obj->arrays; @array = $obj->hashes; @array = $obj->functions; @array = $obj->filehandles; # deprecated, use ios instead @array = $obj->dirhandles; # deprecated, use ios instead @array = $obj->ios; @array = $obj->unknowns; # only perl version < 5.003 had some $string = $obj->as_string; $string = $obj->as_HTML; $string = $obj1->diff($obj2); $string = forks::Devel::Symdump->isa_tree; # or $obj->isa_tree $string = forks::Devel::Symdump->inh_tree; # or $obj->inh_tree # Methods with autogenerated objects # all of those call new(@packs) internally @array = forks::Devel::Symdump->packages(@packs); @array = forks::Devel::Symdump->scalars(@packs); @array = forks::Devel::Symdump->arrays(@packs); @array = forks::Devel::Symdump->hashes(@packs); @array = forks::Devel::Symdump->functions(@packs); @array = forks::Devel::Symdump->ios(@packs); @array = forks::Devel::Symdump->unknowns(@packs); DESCRIPTIONThis little package serves to access the symbol table of perl.
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. SUBCLASSINGThe design of this package is intentionally primitive and allows it to be subclassed easily. An example of a (maybe) useful subclass is forks::Devel::Symdump::Export, a package which exports all methods of the forks::Devel::Symdump package and turns them into functions.AUTHORSAndreas Koenig <andk@cpan.org> and Tom Christiansen <tchrist@perl.com>. Based on the old dumpvar.pl by Larry Wall.COPYRIGHT, LICENSEThis is a modified version of Devel::Symdump 2.08. It includes custom patches for Perl 5.10 compatibility.Original module is Copyright (c) 1995, 1997, 2000, 2002, 2005, 2006 Andreas Koenig "<andk@cpan.org>". All rights reserved. This library is free software; you may use, redistribute and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |