1PMETH(1)              User Contributed Perl Documentation             PMETH(1)
2
3
4

NAME

6       pmeth - show a Perl class's methods
7

DESCRIPTION

9       Given a class name, print out all methods available to that class.  It
10       does this by loading in the class module, and walking its symbol table
11       and those of its ancestor classes.  A regular method call shows up
12       simply:
13
14           $ pmeth IO::Socket | grep '^con'
15           confess
16           configure
17           connect
18           connected
19
20       But one that came from else where is noted with one or more "via"
21       notations:
22
23           DESTROY via IO::Handle
24           export via Exporter via IO::Handle
25
26       A base-class method that is unavailable due to being hidden by a close
27       derived-class method by the same name (but accessible via SUPER::) is
28       indicated by a leading "[overridden]" before it:
29
30           [overridden] new via IO::Handle
31

EXAMPLES

33           $ pmeth IO::Socket
34           AF_INET
35           AF_UNIX
36           INADDR_ANY
37           INADDR_BROADCAST
38           INADDR_LOOPBACK
39           INADDR_NONE
40           SOCK_DGRAM
41           SOCK_RAW
42           SOCK_STREAM
43           accept
44           bind
45           carp
46           confess
47           configure
48           connect
49           connected
50           croak
51           getsockopt
52           import
53           inet_aton
54           inet_ntoa
55           listen
56           new
57           pack_sockaddr_in
58           pack_sockaddr_un
59           peername
60           protocol
61           recv
62           register_domain
63           send
64           setsockopt
65           shutdown
66           sockaddr_in
67           sockaddr_un
68           sockdomain
69           socket
70           socketpair
71           sockname
72           sockopt
73           socktype
74           timeout
75           unpack_sockaddr_in
76           unpack_sockaddr_un
77           DESTROY via IO::Handle
78           SEEK_CUR via IO::Handle
79           SEEK_END via IO::Handle
80           SEEK_SET via IO::Handle
81           _IOFBF via IO::Handle
82           _IOLBF via IO::Handle
83           _IONBF via IO::Handle
84           _open_mode_string via IO::Handle
85           autoflush via IO::Handle
86           blocking via IO::Handle
87           [overridden] carp via IO::Handle
88           clearerr via IO::Handle
89           close via IO::Handle
90           [overridden] confess via IO::Handle
91           constant via IO::Handle
92           [overridden] croak via IO::Handle
93           eof via IO::Handle
94           error via IO::Handle
95           fcntl via IO::Handle
96           fdopen via IO::Handle
97           fileno via IO::Handle
98           flush via IO::Handle
99           format_formfeed via IO::Handle
100           format_line_break_characters via IO::Handle
101           format_lines_left via IO::Handle
102           format_lines_per_page via IO::Handle
103           format_name via IO::Handle
104           format_page_number via IO::Handle
105           format_top_name via IO::Handle
106           format_write via IO::Handle
107           formline via IO::Handle
108           gensym via IO::Handle
109           getc via IO::Handle
110           getline via IO::Handle
111           getlines via IO::Handle
112           gets via IO::Handle
113           input_line_number via IO::Handle
114           input_record_separator via IO::Handle
115           ioctl via IO::Handle
116           [overridden] new via IO::Handle
117           new_from_fd via IO::Handle
118           opened via IO::Handle
119           output_field_separator via IO::Handle
120           output_record_separator via IO::Handle
121           print via IO::Handle
122           printf via IO::Handle
123           printflush via IO::Handle
124           qualify via IO::Handle
125           qualify_to_ref via IO::Handle
126           read via IO::Handle
127           setbuf via IO::Handle
128           setvbuf via IO::Handle
129           stat via IO::Handle
130           sync via IO::Handle
131           sysread via IO::Handle
132           syswrite via IO::Handle
133           truncate via IO::Handle
134           ungensym via IO::Handle
135           ungetc via IO::Handle
136           untaint via IO::Handle
137           write via IO::Handle
138           _push_tags via Exporter via IO::Handle
139           export via Exporter via IO::Handle
140           export_fail via Exporter via IO::Handle
141           export_ok_tags via Exporter via IO::Handle
142           export_tags via Exporter via IO::Handle
143           export_to_level via Exporter via IO::Handle
144           [overridden] import via Exporter via IO::Handle
145           require_version via Exporter via IO::Handle
146           VERSION via UNIVERSAL
147           can via UNIVERSAL
148           [overridden] import via UNIVERSAL
149           isa via UNIVERSAL
150

NOTE

152       Perl makes no distinction between functions, procedures, and methods,
153       nor whether they are public or nominally private, nor whether a method
154       is nominally a class method, an object method, or both.  They all show
155       up as subs in the package namespace.  So if your class says "use Carp",
156       you just polluted your namespace with things like croak() and
157       confess(), which will appear to be available as method calls on objects
158       of your class.
159

SEE ALSO

161       perltoot(1), perlobj(1)
162

AUTHORS and COPYRIGHTS

164       Copyright (C) 1999 Tom Christiansen.
165
166       Copyright (C) 2006-2008 Mark Leighton Fisher.
167
168       This is free software; you can redistribute it and/or modify it under
169       the terms of either: (a) the GNU General Public License as published by
170       the Free Software Foundation; either version 1, or (at your option) any
171       later version, or (b) the Perl "Artistic License".  (This is the Perl 5
172       licensing scheme.)
173
174       Please note this is a change from the original pmtools-1.00 (still
175       available on CPAN), as pmtools-1.00 were licensed only under the Perl
176       "Artistic License".
177
178
179
180perl v5.12.0                      2010-05-04                          PMETH(1)
Impressum