™.. Devel::Symdump - Online Linux Manual PageSection : 3
Updated : 2007-06-25
Source : perl v5.10.1
Note : User Contributed Perl Documentation
NAMEDevel::Symdump − dump symbol names or the symbol table
SYNOPSIS # Constructor
require Devel::Symdump;
@packs = qw(some_package another_package);
$obj = Devel::Symdump−>new(@packs); # no recursion
$obj = 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 = Devel::Symdump−>isa_tree; # or $obj−>isa_tree
$string = Devel::Symdump−>inh_tree; # or $obj−>inh_tree
# Methods with autogenerated objects
# all of those call new(@packs) internally
@array = Devel::Symdump−>packages(@packs);
@array = Devel::Symdump−>scalars(@packs);
@array = Devel::Symdump−>arrays(@packs);
@array = Devel::Symdump−>hashes(@packs);
@array = Devel::Symdump−>functions(@packs);
@array = Devel::Symdump−>ios(@packs);
@array = Devel::Symdump−>unknowns(@packs);
DESCRIPTIONThis little package serves to access the symbol table of perl. 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 \*(C`main\*(C'\fR. That means to get the whole symbol table, just do a \*(C`rnew\*(C'\fR 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. Devel::Symdump−>new(@packages) does not go into recursion and only analyzes the packages that are given as arguments. 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 \*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR or \*(C`%\*(C'\fR. 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. as_string as_HTML As_string() and as_HTML() return a simple string/HTML representations of the object. 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. isa_tree 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: % 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. % 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) 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 Devel::Symdump::Export, a package which exports all methods of the 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 module is Copyright (c) 1995, 1997, 2000, 2002, 2005, 2006 Andreas Koenig \*(C`<andk@cpan.org>\*(C'\fR. All rights reserved. This library is free software; you may use, redistribute and/or modify it under the same terms as Perl itself. 0
Johanes Gumabo
Data Size : 15,607 byte
man-Devel::Symdump.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 200,191
Visitor ID : :
Visitor IP : 18.226.166.207 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Devel::Symdump.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Devel::Symdump.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Devel::Symdump.3pm|41|br══─}─══|'br══─}─══
) (htmlprn|149|Devel::Symdump.3pm|41|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|Devel::Symdump.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (rof_unit_scale_px|41|Devel::Symdump.3pm|51/52|F|.ie \nF ══─{─══. de IX
) (rof_if|19|Devel::Symdump.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (htmlprn|149|Devel::Symdump.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX
) (rof_escape_sequence|91|Devel::Symdump.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|Devel::Symdump.3pm|57|══─}─══|.══─}─══
) (htmlprn|149|Devel::Symdump.3pm|57|.══─}─══ |.══─}─══
) (rof_escape_sequence|91|Devel::Symdump.3pm|179|\*(C`main\*(C'\fR. That means to get the whole symbol |argument, it defaults to \f(CW\*(C`main\*(C'\fR. That means to get the whole symbol
) (rof_escape_sequence|91|Devel::Symdump.3pm|180|\*(C`rnew\*(C'\fR without arguments. |table, just do a \f(CW\*(C`rnew\*(C'\fR without arguments.
) (rof_escape_sequence|91|Devel::Symdump.3pm|196|\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR or |within a Devel::Symdump object, but without the leading \f(CW\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR or
) (rof_escape_sequence|91|Devel::Symdump.3pm|197|\*(C`%\*(C'\fR. In a scalar context, they will return the number of such |\&\f(CW\*(C`%\*(C'\fR. In a scalar context, they will return the number of such
) (rof_escape_sequence|91|Devel::Symdump.3pm|279|\*(C`\*(C'\fR. |Copyright (c) 1995, 1997, 2000, 2002, 2005, 2006 Andreas Koenig \f(CW\*(C`\*(C'\fR.
)