Perl Doc Plugin
Extract the Perl documentation (POD) from a Perl module and display it in a topic
Syntax Rules and Example
Write
%PERLDOC{"Module"}% to display the documentation of a Perl module, for example
%PERLDOC{"File::Copy"}% shows the doc of
File::Copy. Optionally use a
format="pod" parameter to see the raw POD format, or
format="twiki" to see the TWiki markup text.
Use the following form to see the documentation of a Perl module: (this Plugin needs to be installed and enabled)
Perl code with POD (Plain Old Documentation)
Perl code may contain blocks of documentation. A block typically starts with a
=pod or
=head1 at the beginning of a line, and ends with
=cut at the beginning of a line or at the end of the file. Read the details in
http://www.perldoc.com/perl5.6/pod/perlpod.html
POD example:
=head1 Demo of POD
Silly paragraph
=cut
Perl code with TWiki markup
TWiki markup can be used inside a
=begin twiki ...
=end twiki block. Keep in mind that this markup gets parsed correctly only by the PerlDocPlugin, other POD translator ignore the block. The TWiki markup is richer and more compact then POD. Example:
=begin twiki
---++ Demo of TWiki markup
Silly paragraph
=end twiki
=cut
Limitations
- Links (
L<....>) are not supported
Plugin Installation Instructions
- For an automated installation, run the configure script and follow "Find More Extensions" in the in the Extensions section.
- Or, follow these manual installation steps:
- Download the ZIP file from the extension home on twiki.org (see below).
- Unzip
PerlDocPlugin.zip in your twiki installation directory.
- Set the ownership of the extracted directories and files to the webserver user.
- Install the dependencies (if any).
- Plugin configuration and testing:
- Run the configure script and enable the plugin in the Plugins section.
- Configure additional plugin settings in the Extensions section if needed.
- Test if the installation was successful using the examples provided.
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins,
AdminToolsCategory