19 Oct 2018 10:02:08 UTC
- Distribution: Tk-PerlMethodList
- Module version: 0.08
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (498 / 0 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: perl_5
- Activity24 month
- Download (7.17KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionLAMPRECHT Lamprecht Christoph
Tk::PerlMethodList - query the Symbol-table for methods (subroutines) defined in a class (package) and its parents.
my $instance = $main_window->PerlMethodList();
Tk::PerlMethodList is a Tk::Toplevel-derived widget.
The window contains entry fields for a classname and a regex. The list below displays the subroutine-names in the package(s) of the given classname and its parent classes. The list displays the sub-names present in the the symbol-table. In case of imported subs, the last field of a row contains the name of the aliased sub as reported by DevelPeek::CvGV. Tk::PerlMethodList will not show subs which can be - but have not yet been autoloaded. It will show declared subs though. The 'Filter' entry takes a regex to filter the returned List of sub/methodnames.
If the file containing a subroutine definition can be found in %INC, a green mark will be displayed at the beginning of the line. The sourcecode will be displayed by clicking on the subs list-entry.
Method list and source window have Control-plus and Control-minus bindings to change fontsize.
Tk::PerlMethodList supports the following methods:
Set the classname-entry to 'A::Class::Name'.
Set the filter-entry to 'a_regex'.
Build the list for classname and filter present in the entry-fields.
Tk::PerlMethodList supports the following options:
$instance->configure(-classname =>'A::Class::Name') Same as classname('A::Class::Name').
$instance->configure(-filter =>'a_regex') Same as filter('a_regex').
Christoph Lamprecht, email@example.com
Copyright (C) 2006-2007 by Christoph Lamprecht
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Tk::PerlMethodList, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Tk::PerlMethodList
For more information on module installation, please visit the detailed CPAN module installation guide.