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
32       Constants declared via constant have a leading "[constant]" added to
33       the output, but XS "define"'s are not yet so flagged.
34

EXAMPLES

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

NOTE

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

SEE ALSO

164       perltoot(1), perlobj(1)
165

AUTHORS and COPYRIGHTS

167       Copyright (C) 1999 Tom Christiansen.
168
169       Copyright (C) 2006-2014 Mark Leighton Fisher.
170

LICENSE

172       This is free software; you can redistribute it and/or modify it under
173       the terms of either: (a) the GNU General Public License as published by
174       the Free Software Foundation; either version 1, or (at your option) any
175       later version, or (b) the Perl "Artistic License".  (This is the Perl 5
176       licensing scheme.)
177
178       Please note this is a change from the original pmtools-1.00 (still
179       available on CPAN), as pmtools-1.00 were licensed only under the Perl
180       "Artistic License".
181
182
183
184perl v5.34.0                      2021-07-23                          PMETH(1)
Impressum