Pod::POM 0.17
Sponsored Links
Pod::POM 0.17 Ranking & Summary
File size:
0.034 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
826
Date added:
2007-07-24
Publisher:
Andy Wardley
Pod::POM 0.17 description
Pod::POM is a POD Object Model.
SYNOPSIS
use Pod::POM;
my $parser = Pod::POM->new(%options);
# parse from a text string
my $pom = $parser->parse_text($text)
|| die $parser->error();
# parse from a file specified by name or filehandle
my $pom = $parser->parse_text($file)
|| die $parser->error();
# parse from text or file
my $pom = $parser->parse($text_or_file)
|| die $parser->error();
# examine any warnings raised
foreach my $warning ($parser->warnings()) {
warn $warning, "n";
}
# print table of contents using each =head1 title
foreach my $head1 ($pom->head1()) {
print $head1->title(), "n";
}
# print each section
foreach my $head1 ($pom->head1()) {
print $head1->title(), "n";
print $head1->content();
}
# print the entire document as HTML
use Pod::POM::View::HTML;
print Pod::POM::View::HTML->print($pom);
# create custom view
package My::View;
use base qw( Pod::POM::View::HTML );
sub view_head1 {
my ($self, $item) = @_;
return < h1 >,
$item->title->present($self),
"< /h1 >n",
$item->content->present($self);
}
package main;
print My::View->print($pom);
This module implements a parser to convert Pod documents into a simple object model form known hereafter as the Pod Object Model. The object model is generated as a hierarchical tree of nodes, each of which represents a different element of the original document. The tree can be walked manually and the nodes examined, printed or otherwise manipulated. In addition, Pod::POM supports and provides view objects which can automatically traverse the tree, or section thereof, and generate an output representation in one form or another.
SYNOPSIS
use Pod::POM;
my $parser = Pod::POM->new(%options);
# parse from a text string
my $pom = $parser->parse_text($text)
|| die $parser->error();
# parse from a file specified by name or filehandle
my $pom = $parser->parse_text($file)
|| die $parser->error();
# parse from text or file
my $pom = $parser->parse($text_or_file)
|| die $parser->error();
# examine any warnings raised
foreach my $warning ($parser->warnings()) {
warn $warning, "n";
}
# print table of contents using each =head1 title
foreach my $head1 ($pom->head1()) {
print $head1->title(), "n";
}
# print each section
foreach my $head1 ($pom->head1()) {
print $head1->title(), "n";
print $head1->content();
}
# print the entire document as HTML
use Pod::POM::View::HTML;
print Pod::POM::View::HTML->print($pom);
# create custom view
package My::View;
use base qw( Pod::POM::View::HTML );
sub view_head1 {
my ($self, $item) = @_;
return < h1 >,
$item->title->present($self),
"< /h1 >n",
$item->content->present($self);
}
package main;
print My::View->print($pom);
This module implements a parser to convert Pod documents into a simple object model form known hereafter as the Pod Object Model. The object model is generated as a hierarchical tree of nodes, each of which represents a different element of the original document. The tree can be walked manually and the nodes examined, printed or otherwise manipulated. In addition, Pod::POM supports and provides view objects which can automatically traverse the tree, or section thereof, and generate an output representation in one form or another.
Pod::POM 0.17 Screenshot
Pod::POM 0.17 Keywords
POM
HTML
POD Object Model
POD
POM 0.17
Model
Object Model
print
object
head1
text
parse
n
Pod::POM
PodPOM
Pod::POM 0.17
Bookmark Pod::POM 0.17
Pod::POM 0.17 Copyright
WareSeeker periodically updates pricing and software information of Pod::POM 0.17 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::POM 0.17 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
document object model
object modeling
document object model recommendations
component object model
object modelling
excel object model
printers
object model diagram
outlook object model
object model guard
javascript object model
printer
semantic object model
object model design
printable calendars
word object model
object model in sharepoint
printable calendar
Related Software
Pod::PXML is a Perl module that contains pxml2pod and pod2pxml. Free Download
Pod::PP is a POD pre-processor. Free Download
Pod::S5 is a perl program which parses a POD input file and generates a ready to use HTML slideshow. Free Download
Pod::XML is a Perl module to convert POD to XML. Free Download
Pod::WikiDoc is a Perl module to generate Pod from inline wiki style text. Free Download
Pod::Compiler can compile POD into an object tree. Free Download
Pod::HtmlEasy Perl module can generate personalized HTML from PODs. Free Download
Pod::InComments is a Perl extension for extracting POD documentation from comments in config file. Free Download
Latest Software
Popular Software
Favourite Software