Main > Programming > Libraries >

Pod::Simple::Subclassing 3.04

Pod::Simple::Subclassing 3.04

Sponsored Links

Pod::Simple::Subclassing 3.04 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.25 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1232
Date added: 2006-06-09
Publisher: Sean M. Burke

Pod::Simple::Subclassing 3.04 description

Pod::Simple::Subclassing is a Perl module that can write a formatter as a Pod::Simple subclass.

SYNOPSIS

package Pod::SomeFormatter;
use Pod::Simple;
@ISA = qw(Pod::Simple);
$VERSION = 1.01;
use strict;

sub _handle_element_start {
my($parser, $element_name, $attr_hash_r) = @_;
...
}

sub _handle_element_end {
my($parser, $element_name) = @_;
...
}

sub _handle_text {
my($parser, $text) = @_;
...
}
1;

This document is about using Pod::Simple to write a Pod processor, generally a Pod formatter. If you just want to know about using an existing Pod formatter, instead see its documentation and see also the docs in Pod::Simple.

The zeroeth step in writing a Pod formatter is to make sure that there isnt already a decent one in CPAN. See http://search.cpan.org/, and run a search on the name of the format you want to render to. Also consider joining the Pod People list http://lists.perl.org/showlist.cgi?name=pod-people and asking whether anyone has a formatter for that format -- maybe someone cobbled one together but just hasnt released it.

The first step in writing a Pod processor is to read perlpodspec, which contains notes information on writing a Pod parser (which has been largely taken care of by Pod::Simple), but also a lot of requirements and recommendations for writing a formatter.

The second step is to actually learn the format youre planning to format to -- or at least as much as you need to know to represent Pod, which probably isnt much.
The third step is to pick which of Pod::Simples interfaces you want to use -- the basic interface via Pod::Simple or Pod::Simple::Methody is event-based, sort of like HTML::Parsers interface, or sort of like XML::Parsers "Handlers" interface), but Pod::Simple::PullParser provides a token-stream interface, sort of like HTML::TokeParsers interface; Pod::Simple::SimpleTree provides a simple tree interface, rather like XML::Parsers "Tree" interface.

Users familiar with XML-handling will find one of these styles relatively familiar; but if you would be even more at home with XML, there are classes that produce an XML representation of the Pod stream, notably Pod::Simple::XMLOutStream; you can feed the output of such a class to whatever XML parsing system you are most at home with.

The last step is to write your code based on how the events (or tokens, or tree-nodes, or the XML, or however youre parsing) will map to constructs in the output format. Also sure to consider how to escape text nodes containing arbitrary text, and also what to do with text nodes that represent preformatted text (from verbatim sections).

Pod::Simple::Subclassing 3.04 Screenshot

Advertisements

Pod::Simple::Subclassing 3.04 Keywords

Bookmark Pod::Simple::Subclassing 3.04

Hyperlink code:
Link for forum:

Pod::Simple::Subclassing 3.04 Copyright

WareSeeker periodically updates pricing and software information of Pod::Simple::Subclassing 3.04 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Pod::Simple::Subclassing 3.04 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Pod::Simple::HTMLBatch is a Perl module to convert several Pod files to several HTML files. Free Download
Pod::Man is a Perl module to convert POD data to formatted *roff input. Free Download
Console Jabber Client is a Jabber client with text-based user interface resembling those known from popular IRC clients. Free Download
Pod::PlainText is a Perl module that can convert POD data to formatted ASCII text. Free Download
mp3blaster provides interactive playing of audio files like mp3 on a text console. Free Download
Pod::HTML_Elements is a Perl module to convert POD to tree of LWPs HTML::Element and hence HTML or PostScript. Free Download
Pod::WSDL::Doc is a Perl module that represents the WSDL pod for the documentation of methods (internal use only). Free Download
Pod::Html is a Perl module to convert pod files to HTML. Free Download