Pod::Simple::Methody - Online Linux Manual PageSection : 3
Updated : 2023-01-20
Source : perl v5.36.0
Note : User Contributed Perl Documentation
NAMEPod::Simple::Methody −− turn Pod::Simple events into method calls
SYNOPSIS require 5;
use strict;
package SomePodFormatter;
use base qw(Pod::Simple::Methody);
sub handle_text {
my($self, $text) = @_;
...
}
sub start_head1 {
my($self, $attrs) = @_;
...
}
sub end_head1 {
my($self) = @_;
...
}
...and start_/end_ methods for whatever other events you want to catch.
DESCRIPTIONThis class is of interest to people writing Pod formatters based on Pod::Simple. This class (which is very small −− read the source) overrides Pod::Simple's _handle_element_start, _handle_text, and _handle_element_end methods so that parser events are turned into method calls. (Otherwise, this is a subclass of Pod::Simple and inherits all its methods.) You can use this class as the base class for a Pod formatter/processor.
METHOD CALLINGWhen Pod::Simple sees a "=head1 Hi there", for example, it basically does this: $parser−>_handle_element_start( "head1", \%attributes );
$parser−>_handle_text( "Hi there" );
$parser−>_handle_element_end( "head1" );
But if you subclass Pod::Simple::Methody, it will instead do this when it sees a "=head1 Hi there": $parser−>start_head1( \%attributes ) if $parser−>can('start_head1');
$parser−>handle_text( "Hi there" ) if $parser−>can('handle_text');
$parser−>end_head1() if $parser−>can('end_head1');
If Pod::Simple sends an event where the element name has a dash, period, or colon, the corresponding method name will have a underscore in its place. For example, "foo.bar:baz" becomes start_foo_bar_baz and end_foo_bar_baz. See the source for Pod::Simple::Text for an example of using this class.
SEE ALSOPod::Simple, Pod::Simple::Subclassing
SUPPORTQuestions or discussion about POD and Pod::Simple should be sent to the pod−people@perl.org mail list. Send an empty email to pod−people−subscribe@perl.org to subscribe. This module is managed in an open GitHub repository, <https://github.com/perl−pod/pod−simple/>. Feel free to fork and contribute, or to clone <git://github.com/perl−pod/pod−simple.git> and send patches! Patches against Pod::Simple are welcome. Please send bug reports to <bug−pod−simple@rt.cpan.org>.
COPYRIGHT AND DISCLAIMERSCopyright (c) 2002 Sean M. Burke. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
AUTHORPod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired. Pod::Simple is maintained by: • Allison Randal \*(C`allison@perl.org\*(C'\fR • Hans Dieter Pearcey \*(C`hdp@cpan.org\*(C'\fR • David E. Wheeler \*(C`dwheeler@cpan.org\*(C'\fR 0
Johanes Gumabo
Data Size : 10,161 byte
man-Pod::Simple::Methody.3pmBuild : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 256,573
Visitor ID : :
Visitor IP : 18.189.185.6 :
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.29
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_|252|Pod::Simple::Methody.3pm|24/25|el══─{─══.|.el══─{─══. ds C`
) (htmlprn|149|Pod::Simple::Methody.3pm|24/25|.el══─{─══. ds C` |.el══─{─══. ds C`
) (parse_manual_page_|252|Pod::Simple::Methody.3pm|27|br══─}─══|'br══─}─══
) (htmlprn|149|Pod::Simple::Methody.3pm|27|'br══─}─══ |'br══─}─══
) (rof_escape_sequence|91|Pod::Simple::Methody.3pm|159|\*(C`allison@perl.org\*(C'\fR |Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR
) (rof_escape_sequence|91|Pod::Simple::Methody.3pm|161|\*(C`hdp@cpan.org\*(C'\fR |Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR
) (rof_escape_sequence|91|Pod::Simple::Methody.3pm|163|\*(C`dwheeler@cpan.org\*(C'\fR |David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR
)