| 1 |
NAME |
| 2 |
Pod::Simple::Wiki - A class for creating Pod to Wiki filters. |
| 3 |
|
| 4 |
|
| 5 |
DESCRIPTION |
| 6 |
The `Pod::Simple::Wiki' module is used for converting Pod text |
| 7 |
to Wiki text. |
| 8 |
|
| 9 |
Pod (Plain Old Documentation) is a simple markup language used |
| 10 |
for writing Perl documentation. |
| 11 |
|
| 12 |
A Wiki is a user extensible web site. It uses very simple mark- |
| 13 |
up that is converted to Html. |
| 14 |
|
| 15 |
For an introduction to Wikis see: http://en.wikipedia.org/wiki/Wiki |
| 16 |
|
| 17 |
|
| 18 |
SYNOPSIS |
| 19 |
To create a simple `pod2wiki' filter: |
| 20 |
|
| 21 |
#!/usr/bin/perl |
| 22 |
|
| 23 |
use strict; |
| 24 |
use warnings; |
| 25 |
use Pod::Simple::Wiki; |
| 26 |
|
| 27 |
my $parser = Pod::Simple::Wiki->new(); |
| 28 |
|
| 29 |
if ( defined $ARGV[0] ) { |
| 30 |
open IN, $ARGV[0] or die "Couldn't open $ARGV[0]: $!\n"; |
| 31 |
} |
| 32 |
else { |
| 33 |
*IN = *STDIN; |
| 34 |
} |
| 35 |
|
| 36 |
if ( defined $ARGV[1] ) { |
| 37 |
open OUT, ">$ARGV[1]" or die "Couldn't open $ARGV[1]: $!\n"; |
| 38 |
} |
| 39 |
else { |
| 40 |
*OUT = *STDOUT; |
| 41 |
} |
| 42 |
|
| 43 |
$parser->output_fh( *OUT ); |
| 44 |
$parser->parse_file( *IN ); |
| 45 |
|
| 46 |
__END__ |
| 47 |
|
| 48 |
|
| 49 |
SEE ALSO |
| 50 |
This module also installs a `pod2wiki' command line utility. See |
| 51 |
`pod2wiki --help' for details. |
| 52 |
|
| 53 |
|
| 54 |
AUTHOR |
| 55 |
John McNamara [email protected] |
| 56 |
|
| 57 |
|
| 58 |
COPYRIGHT |
| 59 |
Copyright MMIII-MMXV, John McNamara. |
| 60 |
|
| 61 |
All Rights Reserved. This module is free software. It may be |
| 62 |
used, redistributed and/or modified under the same terms as Perl |
| 63 |
itself. |